139 Commits (954871f6abc739a243bc4195be982cab29697477)
 

Author SHA1 Message Date
rasul 954871f6ab put everything in one stage to make it go faster
5 years ago
rasul 6777efd142 document the global variables
5 years ago
rasul d431c0f133 add some doc for init()
5 years ago
rasul 6a1df72b2a reorder if and else to make more sense
5 years ago
rasul 4255dbaca7 change doc comment code because hash() now needs to return Result
5 years ago
rasul 77ab912d19 test the hash function
5 years ago
rasul 81c1c2920c pub isn't needed for these vars
5 years ago
rasul 6e8e99e329 ensure requirements are met when changing password
5 years ago
rasul bdf8f86ba5 Move the pass and name checks to its own module outside the Game struct.
5 years ago
rasul 73fbc8750d handle errors with passwords
5 years ago
rasul 961b01ffd6 return Result for errors
5 years ago
rasul 45046af201 use argon2 instead of sha512
5 years ago
rasul f722ad25fa start on the help command stuff
5 years ago
rasul f929fecb73 don't use 'string' as a name
5 years ago
rasul c97fdd1410 rustfmt
5 years ago
rasul 428d6aeedd log_error! macro to just log an error but with file and line
5 years ago
rasul 532b0d0771 update rusqlite to v0.22
5 years ago
rasul b089755f33 cargo update
5 years ago
rasul 64114b6d68 Store a salted and hashed password.
5 years ago
rasul b38d96dd5c put passwords into a separate table
5 years ago
rasul 6677deb460 rustfmt
5 years ago
rasul 4cc0a1db3b add hash() and salt() functions to be used for passwords
5 years ago
rasul 8fe7a14a75 replace ? with try_log! macro to log errors
5 years ago
rasul c84f2e8c5b use RudeResult and take generic errors
5 years ago
rasul f917df3ea1 remove unused use
5 years ago
rasul 80c8b7bf06 rustfmt
5 years ago
rasul c2a42c536f move state changes to iter_once
5 years ago
rasul 53e67fcd1f handle state changes
5 years ago
rasul 85d1eeff70 provide new state
5 years ago
rasul a9cc95ef6c rustfmt
5 years ago
rasul f853002a90 check for valid password at creation
5 years ago
rasul db8e3cf1f7 only proceed if y was selected
5 years ago
rasul 3b47837bdb use src dir instead of .
5 years ago
rasul 6c0eb7a57d rustfmt
5 years ago
rasul b9156b0300 check that name is valid per name requirements
5 years ago
rasul 70ebf1a210 don't need Id anymore
5 years ago
rasul 0f9da2da65 config.starting_location is now config.player.starting_location
5 years ago
rasul aba6e663df some comments
5 years ago
rasul 7a17fe4a08 use config instead of hard coded values
5 years ago
rasul f4134b1911 add player config section and move starting_location there with the other new player related configs
5 years ago
rasul b7bfda95e9 methods to check if a name or password are valid
5 years ago
rasul 6f35c4a8e4 update readme with some instructions
5 years ago
rasul 06ce7bec7b use the From<(Token, Into<String>)> impl
5 years ago
rasul 24c6c01da7 subcommand: set room zone : to set zone for the current room
5 years ago
rasul 222aa967a1 rustfmt
5 years ago
rasul 61b769b3c1 add a parse_str() method to Id
5 years ago
rasul c963514967 from implementation to conveniently make SendQueue from (Token, Into<String>)
5 years ago
rasul 77a5df67d8 don't need to use the name mod
5 years ago
rasul 29e6f59864 log error message
5 years ago
rasul 0cff41a4f2 don't need to use name module
5 years ago