Models.UserSecrets Class
Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Represents password and other user-login information.
Properties
PasswordHash
Property
User's password hash.
PasswordHashAlgorithm
Property
PasswordResetToken
Property
Auto-generated token used for password resets.
PasswordResetTokenExpiryDate
Property
VerificationToken
Property
Auto-generated token used for new user verification.
VerificationTokenExpiryDate
Property
PasswordQuestion
Property
Not in use
PasswordAnswer
Property
Not in use
LastLoginDate
Property
Date/time of the last successful login.
LastPasswordChangedDate
Property
Date/time that the user last changed their password.
LastLockoutDate
Property
Date/Time of the last lockout for the user.
IsLockedOut
Property
Gets or sets whether the user is locked out.
FailedPasswordAttemptCount
Property
Gets or sets the number of times that the user has entered the wrong password, within the configured time window.
FailedPasswordWindowStart
Property
Gets or sets the date/time of the first password attempt failure, within the configured time window.
FailedPasswordAnswerAttemptCount
Property
Not in use
FailedPasswordAnswerWindowStart
Property
Not in use
Salt
Property
Random value used by the hash algorithm.
Methods
VerifyPassword
(String) Method
VerifyPassword (String password)
Compare the submitted password with the user's saved password.
SetPassword
(String) Method
SetPassword (String newPassword)
Set the password for the user.