-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put all password hashing operations in one place
Once they are all in that effect, we can start asking for either the user ID or the IP address and use that to rate limit. Changes: 1. Move verifyPassword and verifyPasswordWithStatus to wire-subsystems 2. verifyPasswordWithStatus doesn't ask password to be updated if the current config says that the password should be hashed with Scrypt. 3. Move PasswordStatus type to wire-subsystems as it is not part of the API. 4. Use Wire.Sem.Random (and hence openssl in prod) to generate salt. 5. Move all password tests from wire-api to wire-subsystems. 6. Use HashPassword effect for password verification everywhere.
- Loading branch information
1 parent
d29db85
commit bcb5ad1
Showing
25 changed files
with
651 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.