Skip to content

Commit 2ef437a

Browse files
johnnydimasflovilmart
authored andcommitted
Added verify password to users router and tests. (#4747)
* Added verify password to users router and tests. * Added more tests to support more coverage. * Added additional tests to spec. Removed condition from verifyPassword function where authData null keys condition wasn't necessary. * Removed POST handling from verifyPassword. * Refactored handleLogin and handleVerifyPassword to use shared helper function to validate the password provided in the request. * Refactored verifyPassword and login to not use try/catch. Parent promise returns the error. Moved login specific functions to login handler. * Added account lockout policy to verify password function. Added test spec for account lockout in verify password. * no message * Merged new changes from master. Made changes as requested from comments. * We cannot remove hidden properties from the helper before returning to the login function. The password expiration check in the login function is dependent on some hidden properties, otherwise three password policy tests fail.
1 parent 9c9c07f commit 2ef437a

File tree

2 files changed

+627
-93
lines changed

2 files changed

+627
-93
lines changed

0 commit comments

Comments
 (0)