Back to Devexpress

IAuthenticationStandardUser.ChangePasswordOnFirstLogon Property

expressappframework-devexpress-dot-persistent-dot-base-dot-security-dot-iauthenticationstandarduser.md

latest2.7 KB
Original Source

IAuthenticationStandardUser.ChangePasswordOnFirstLogon Property

Specifies whether the user must change password on the next logon.

Namespace : DevExpress.Persistent.Base.Security

Assembly : DevExpress.Persistent.Base.v25.2.dll

NuGet Package : DevExpress.Persistent.Base

Declaration

csharp
bool ChangePasswordOnFirstLogon { get; set; }
vb
Property ChangePasswordOnFirstLogon As Boolean

Property Value

TypeDescription
Boolean

true , if the user must change password on the next logon; otherwise - false.

|

Remarks

If this property is set to true for a particular user, an additional window will be displayed after authentication.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ChangePasswordOnFirstLogon property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XAF_logon-form-manage-users-register-a-new-user-restore-a-password/CS/EFCore/Security.Extensions/LogonActionParameters.cs#L58

csharp
user.SetPassword(password);
user.ChangePasswordOnFirstLogon = true;
objectSpace.CommitChanges();

See Also

Passwords in the Security System

IAuthenticationStandardUser Interface

IAuthenticationStandardUser Members

DevExpress.Persistent.Base.Security Namespace