Skip to content

Commit edb7b70

Browse files
bhaskaryasacherukumilli
authored andcommitted
Adds password expiry support to password policy (#3068)
* Adding support for password expiry policy * Renamed daysBeforeExpiry -> maxPasswordAge
1 parent 11c6170 commit edb7b70

File tree

8 files changed

+395
-87
lines changed

8 files changed

+395
-87
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ var server = ParseServer({
287287
// 2. a callback function to be invoked to validate the password
288288
validatorCallback: (password) => { return validatePassword(password) },
289289
doNotAllowUsername: true, // optional setting to disallow username in passwords
290+
maxPasswordAge: 90, // optional setting in days for password expiry. Login fails if user does not reset the password within this period after signup/last reset.
290291
//optional setting to set a validity duration for password reset links (in seconds)
291292
resetTokenValidityDuration: 24*60*60, // expire after 24 hours
292293
}

0 commit comments

Comments
 (0)