Class SignUpConfiguration.PasswordRecovery
java.lang.Object
com.smartfoxserver.components.signup.SignUpConfiguration.PasswordRecovery
- Enclosing class:
SignUpConfiguration
Configures the Password Recovery feature of the SignUp Assistant.
The password recovery requires the client's name and returns either the old password from the database or generates a new one, based on how is configured the mode parameter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAllows to specify which field in the DB should be used for password recovery.The email configurationbooleanTurns on/off the Password RecoverySpecify the mode in which the Password Recovery service works GENERATE_NEW: generates a new passwordbooleanValidates the user name using a case-sensitive string comparison -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
isActive
public boolean isActiveTurns on/off the Password Recovery -
useCaseSensitiveNameCheck
public boolean useCaseSensitiveNameCheckValidates the user name using a case-sensitive string comparison -
allowedRecoveryFields
Allows to specify which field in the DB should be used for password recovery. This can be useful for clients that allow password recovery by username or email or other parameters. The client can send the name of the field to use and the data to match. The server will validate it against this list of this "allowed recovery fields".Default: null. In this case the match is allowed only for the user name field.
- Since:
- 2.12
-
mode
Specify the mode in which the Password Recovery service works- GENERATE_NEW : generates a new password
-
email
The email configuration- See Also:
-
-
Constructor Details
-
PasswordRecovery
public PasswordRecovery()
-