Class PasswordChangeProvider
Default Change Password Provider using 'System.DirectoryServices' from Microsoft.
Inheritance
System.Object
PasswordChangeProvider
Implements
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: Unosquare.PassCore.PasswordProvider
Syntax
public class PasswordChangeProvider : IPasswordChangeProvider
Constructors
PasswordChangeProvider(ILogger<PasswordChangeProvider>, IOptions<PasswordChangeOptions>)
Initializes a new instance of the PasswordChangeProvider class.
Declaration
public PasswordChangeProvider(ILogger<PasswordChangeProvider> logger, IOptions<PasswordChangeOptions> options)
Parameters
Type | Name | Description |
---|---|---|
ILogger<PasswordChangeProvider> | logger | The logger. |
IOptions<PasswordChangeOptions> | options | The options. |
Methods
PerformPasswordChange(String, String, String)
Performs the password change using the credentials provided.
Declaration
public ApiErrorItem PerformPasswordChange(string username, string currentPassword, string newPassword)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username. |
System.String | currentPassword | The current password. |
System.String | newPassword | The new password. |
Returns
Type | Description |
---|---|
ApiErrorItem | The API error item or null if the change password operation was successful. |