Class NoopBackOfficeUserPasswordChecker
Inheritance
Namespace: Umbraco.Cms.Web.Common.Security
Assembly: Umbraco.Web.Common.dll
Syntax
public class NoopBackOfficeUserPasswordChecker : IBackOfficeUserPasswordChecker
Constructors
View SourceNoopBackOfficeUserPasswordChecker()
Declaration
public NoopBackOfficeUserPasswordChecker()
Methods
View SourceCheckPasswordAsync(BackOfficeIdentityUser, string)
Checks whether the specified password is valid for the given back office user.
Declaration
public Task<BackOfficeUserPasswordCheckerResult> CheckPasswordAsync(BackOfficeIdentityUser user, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| BackOfficeIdentityUser | user | The back office identity user whose password is being validated. The username will always be set; other properties may be null if the user does not exist locally. |
| string | password | The password to validate against the user's credentials. |
Returns
| Type | Description |
|---|---|
| Task<BackOfficeUserPasswordCheckerResult> | A task representing the asynchronous operation. The result contains the outcome of the password check. |
Remarks
This method allows a developer to auto-link a local account, which is required if the queried user does not exist
locally. The user parameter will always contain the username; if the user does not exist locally,
the other properties will not be populated. A developer can then create a local account by filling in the properties
and using UserManager.CreateAsync.