feat(identity): hash passwords with Argon2id and bounded inputs
This commit is contained in:
1 parent
6153887eb5
commit
dda3825786
26 files changed
+1475
-32
No files matched your search
@@ -49,7 +49,7 @@ CREATE TABLE users (
|
||||
CONSTRAINT users_password_hash_format CHECK (
|
||||
char_length(password_hash) <= 512
|
||||
AND password_hash
|
||||
~ '^\$argon2id\$v=19\$m=[0-9]+,t=[0-9]+,p=[0-9]+\$[A-Za-z0-9+/]+\$[A-Za-z0-9+/]+$'
|
||||
~ '^\$argon2id\$v=19\$m=[1-9][0-9]{0,9},t=[1-9][0-9]{0,9},p=[1-9][0-9]{0,2}\$[A-Za-z0-9+/]+\$[A-Za-z0-9+/]+$'
|
||||
),
|
||||
CONSTRAINT users_scenario_onboarding_step CHECK (
|
||||
(
|
||||
|
||||
Reference in new issue
Block a user