Commit Graph

22 Commits

Author SHA1 Message Date
Emi Tatsuo 00584c2f27
Switch to using UIDs 2020-12-16 19:20:54 -05:00
Emi Tatsuo 8f0d76fa55
Added a method to delete a user 2020-12-13 20:13:32 -05:00
Emi Tatsuo fb357b59eb
Support base64 encoded certificate hashes, remove ring as mandatory dep for scgi_srv
Removing ring also means switching out some of the code around user password hashes so that's what that is, if you're wondering.  Also, the sunrise today was absolutely beautiful.  I haven't been awake for a sunrise in a long time, so I guess that's one upside to not sleeping.  Like, melencholy sunsets get a lot of love, but man, nothing fills you with hope and positivity like a sunrise.
2020-12-03 08:10:50 -05:00
Emii Tatsuo 8b9fbce489
Fix user management module, rework certificates to use hashes 2020-12-01 14:43:15 -05:00
Emii Tatsuo 4a2293ddc6
Add specific methods for getting at UserData 2020-11-28 15:01:39 -05:00
Emii Tatsuo eca5c2fd44
Add a couple logging messages 2020-11-28 14:23:39 -05:00
Emii Tatsuo fa0d031ee8
Fix crash on successful log in 2020-11-27 18:36:24 -05:00
Emi Tatsuo 28a4d64c5f
Segregate features surrounding multiple certificates & passwords to a seperate feature 2020-11-22 22:24:36 -05:00
Emi Tatsuo 2b5ee33762
Fixed bug where user password was never saved 2020-11-22 00:42:26 -05:00
Emi Tatsuo 3c7d3457ef
Added has_password to RegisteredUser 2020-11-22 00:33:57 -05:00
Emi Tatsuo 6e82ae059d
Add user management routes 2020-11-21 23:03:56 -05:00
Emi Tatsuo 766c472cbf
Added the `add_certificate` and `attach` methods 2020-11-19 17:41:32 -05:00
Emi Tatsuo 79b06b08ba
Refactor SignedInUser -> RegisteredUser 2020-11-19 17:00:32 -05:00
Emi Tatsuo 2f1196228f
Return a full SignedInUser from lookup_user(), restrict access to PartialUser
Okay this is a much nicer API tbh.  Why didn't I do this from the start?  'cause I'm bad
at planning that's why.  We got there eventually though!
2020-11-19 16:54:29 -05:00
Emi Tatsuo 1908d0a0d7
Implement the set password method 2020-11-19 16:39:02 -05:00
Emi Tatsuo fb205cd397
Switched from bcrypt to argon 2020-11-19 16:07:52 -05:00
Emi Tatsuo ff5f294dae
Restricted access to several fields of SignedInUser 2020-11-19 15:21:26 -05:00
Emi Tatsuo abcb296574
Cleaned up some warnings in user_management
*sweep sweep sweep sweep sweep*
2020-11-19 14:27:36 -05:00
Emi Tatsuo 18228bb1c5
Save SignedInUser on drop, and make changes necessary to that end
Which was a surprisingly large number of changes /shrug
2020-11-19 14:25:36 -05:00
Emi Tatsuo e7cf782a60
Improve user management docs 2020-11-19 13:20:14 -05:00
Emi Tatsuo 0a67c1d672
Rename UserInner -> PartialUser, expose for access outside of crate 2020-11-16 09:21:24 -05:00
Emi Tatsuo 0e2f8d5f62
Added user management API [WIP] 2020-11-16 01:13:16 -05:00