World is now on Opti ID! Learn more

Class UIUserManager

Manages users and its settings.

Inheritance
System.Object
UIUserManager
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Security
Assembly: EPiServer.Shell.dll
Version: 10.10.4
Syntax
public abstract class UIUserManager : IDisposable

Constructors

UIUserManager()

Declaration
protected UIUserManager()

Methods

ChangePassword(IUIUser, String, String)

Updates the password for the user in the user provider data store.

Declaration
public virtual bool ChangePassword(IUIUser user, string oldPassword, string newPassword)
Parameters
Type Name Description
IUIUser user

The User

System.String oldPassword

The old password

System.String newPassword

The new password

Returns
Type Description
System.Boolean

true if the update was successful; otherwise, false.

ChangePasswordQuestionAndAnswer(IUIUser, String, String, String)

Updates the password question and answer for the user in the user provider data store.

Declaration
public virtual bool ChangePasswordQuestionAndAnswer(IUIUser user, string password, string newPasswordQuestion, string newPasswordAnswer)
Parameters
Type Name Description
IUIUser user

The User

System.String password

The current password for the membership user.

System.String newPasswordQuestion

The new password question value for the membership user.

System.String newPasswordAnswer

The new password answer value for the membership user.

Returns
Type Description
System.Boolean

Dispose()

Declaration
public void Dispose()

Dispose(Boolean)

Disposes the manager

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

true if dispaosing

ResetPassword(IUIUser)

Resets a user's password to a new, automatically generated password.

Declaration
public virtual string ResetPassword(IUIUser user)
Parameters
Type Name Description
IUIUser user
Returns
Type Description
System.String

The new password for the membership user.

UnlockUser(IUIUser)

Clears the locked-out state of the user so that the user provider can be validated.

Declaration
public virtual bool UnlockUser(IUIUser user)
Parameters
Type Name Description
IUIUser user

The User

Returns
Type Description
System.Boolean

Implements

System.IDisposable

Extension Methods