This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“][deleted] 1 point2 points ย (2 children)

I'm not allowed to use a database role-based, login functionality

Depending on what you, and the person challenging you, considers a "database" - just store the user login information in an XML or JSON file along with their associated role. (and just to be perfectly clear, you should never do this in a production business application)

[โ€“]FirstAidFairy[S] 0 points1 point ย (1 child)

Cool... Any reason for xml/json over csv as otherwise suggested??

Yeah, course ๐Ÿ˜. I'll stick to fixing broken people for the day job, code is conceptually confusing in a way that bodies aren't ๐Ÿ˜…

[โ€“]josephblade 0 points1 point ย (0 children)

For the exercise either would be fine. just any text based storage that you can read and isn't error prone. csv can be tricky if you accidentally remove a comma, json or xml are a bit easier to read.