mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
No need to have avoid timing side-channel attack in user_add. We're just going to tell you if the user already exists anyway.
This commit is contained in:
1 parent
96edae33ed
commit
2f7b56e6a9
2 files changed
+18
-20
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ Here is an overview of how user passwords are currently being stored in Plinth.
|
||||
|
||||
1. We check if the username or password is empty. If so, return an error message.
|
||||
|
||||
2. Use bcrypt (from passlib) to encrypt the password and generate a random salt. This step is performed regardless of whether the user already exists.
|
||||
2. Use bcrypt (from passlib) to encrypt the password and generate a random salt.
|
||||
|
||||
3. If the password length is over 4096, bcrypt raises an exception. We catch this exception and return an error message.
|
||||
|
||||
|
||||
Reference in new issue
Block a user