Feature: Reuse tokens if they haven't expired (#7017)
* Reuse tokens if they haven't expired * Fix failing tests * Update UserController.js * Update tests * Tests for invalid config * restart tests
This commit is contained in:
@@ -125,6 +125,12 @@ module.exports.ParseServerOptions = {
|
||||
help: 'Adapter module for email sending',
|
||||
action: parsers.moduleOrObjectParser,
|
||||
},
|
||||
emailVerifyTokenReuseIfValid: {
|
||||
env: 'PARSE_SERVER_EMAIL_VERIFY_TOKEN_REUSE_IF_VALID',
|
||||
help: 'an existing password reset token should be reused when a password reset is requested',
|
||||
action: parsers.booleanParser,
|
||||
default: false,
|
||||
},
|
||||
emailVerifyTokenValidityDuration: {
|
||||
env: 'PARSE_SERVER_EMAIL_VERIFY_TOKEN_VALIDITY_DURATION',
|
||||
help: 'Email verification token validity duration, in seconds',
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
* @property {Boolean} directAccess Replace HTTP Interface when using JS SDK in current node runtime, defaults to false. Caution, this is an experimental feature that may not be appropriate for production.
|
||||
* @property {String} dotNetKey Key for Unity and .Net SDK
|
||||
* @property {Adapter<MailAdapter>} emailAdapter Adapter module for email sending
|
||||
* @property {Boolean} emailVerifyTokenReuseIfValid an existing password reset token should be reused when a password reset is requested
|
||||
* @property {Number} emailVerifyTokenValidityDuration Email verification token validity duration, in seconds
|
||||
* @property {Boolean} enableAnonymousUsers Enable (or disable) anonymous users, defaults to true
|
||||
* @property {Boolean} enableExpressErrorHandler Enables the default express error handler for all errors
|
||||
|
||||
@@ -124,6 +124,9 @@ export interface ParseServerOptions {
|
||||
preventLoginWithUnverifiedEmail: ?boolean;
|
||||
/* Email verification token validity duration, in seconds */
|
||||
emailVerifyTokenValidityDuration: ?number;
|
||||
/* an existing password reset token should be reused when resend verification is requested
|
||||
:DEFAULT: false */
|
||||
emailVerifyTokenReuseIfValid: ?boolean;
|
||||
/* account lockout policy for failed login attempts */
|
||||
accountLockout: ?any;
|
||||
/* Password policy for enforcing password related rules */
|
||||
|
||||
Reference in New Issue
Block a user