Skip to content

AccountPasswordActionsPageBase<TUserRow> class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Base class for account password action pages, such as change password, set password, forgot password, and reset password.

public abstract class AccountPasswordActionsPageBase<TUserRow> : MembershipPageBase<TUserRow>
    where TUserRow : class, IRow, IIdRow, IEmailRow, IPasswordRow, new()

Public Members

name description
virtual ChangePassword(…) Renders the change password page, or the set password page if the user has no password set. (2 methods)
virtual ForgotPassword() Renders the forgot password page.
virtual ForgotPassword(…) Sends a reset password email to the user with the specified email address.
virtual ResetPassword(…) Validates the reset token and renders the reset password page if it is valid. (2 methods)
virtual SendResetPassword(…) Sends a reset password email to the current user, or returns a demo link in public demo mode.
SetPassword() Renders the set password page.

Protected Members

name description
AccountPasswordActionsPageBase() The default constructor.
virtual ModuleFolder { get; } The folder containing the password action module scripts.
virtual ResetPasswordTokenLifetime { get; } How long a reset password link works, 3 hours by default.
virtual GenerateResetPasswordToken(…) Generates a protected reset password token for the specified user.
virtual GetForgotPasswordPageModel() Gets the module page model for the forgot password page.
virtual GetResetPasswordPageModel(…) Gets the module page model for the reset password page.
virtual ModulePath(…) Gets the module script path for the specified key.
virtual PublishPasswordChanged(…) Tells the account event handlers, e.g. the one that emails the user, that the password of a user was changed, when the transaction is committed, if there is an IAccountEventPublisher.

See Also