Click or drag to resize
AuthenticationHelperCheckPasswordExpiration Method
Check if user password is expired and optionally according to settings lock expired password account.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
public static bool CheckPasswordExpiration(
	UserInfo ui,
	string siteName,
	bool lockAccount = false,
	string returnUrl = null
)

Parameters

ui
Type: CMS.MembershipUserInfo
User account to check
siteName
Type: SystemString
Site name
lockAccount (Optional)
Type: SystemBoolean
Indicates if account should be locked if maximum invalid logon attempts was reached
returnUrl (Optional)
Type: SystemString
URL using which user can log on to system, after password change

Return Value

Type: Boolean
Returns true if user password expired, false otherwise
See Also