More work on nullable reference types
This commit is contained in:
@@ -110,7 +110,7 @@ namespace Umbraco.Cms.Web.Common.Security
|
||||
return result;
|
||||
}
|
||||
|
||||
public override async Task<IdentityResult> ChangePasswordWithResetAsync(string userId, string token, string newPassword)
|
||||
public override async Task<IdentityResult> ChangePasswordWithResetAsync(string userId, string token, string? newPassword)
|
||||
{
|
||||
IdentityResult result = await base.ChangePasswordWithResetAsync(userId, token, newPassword);
|
||||
if (result.Succeeded)
|
||||
@@ -121,7 +121,7 @@ namespace Umbraco.Cms.Web.Common.Security
|
||||
return result;
|
||||
}
|
||||
|
||||
public override async Task<IdentityResult> ChangePasswordAsync(BackOfficeIdentityUser user, string currentPassword, string newPassword)
|
||||
public override async Task<IdentityResult> ChangePasswordAsync(BackOfficeIdentityUser user, string? currentPassword, string? newPassword)
|
||||
{
|
||||
IdentityResult result = await base.ChangePasswordAsync(user, currentPassword, newPassword);
|
||||
if (result.Succeeded)
|
||||
@@ -176,7 +176,7 @@ namespace Umbraco.Cms.Web.Common.Security
|
||||
return currentUserId;
|
||||
}
|
||||
|
||||
public void NotifyAccountLocked(IPrincipal? currentUser, string userId) => Notify(currentUser,
|
||||
public void NotifyAccountLocked(IPrincipal? currentUser, string? userId) => Notify(currentUser,
|
||||
(currentUserId, ip) => new UserLockedNotification(ip, userId, currentUserId)
|
||||
);
|
||||
|
||||
@@ -196,7 +196,7 @@ namespace Umbraco.Cms.Web.Common.Security
|
||||
(currentUserId, ip) => new UserLoginFailedNotification(ip, userId, currentUserId)
|
||||
);
|
||||
|
||||
public void NotifyLoginRequiresVerification(IPrincipal currentUser, string userId) => Notify(currentUser,
|
||||
public void NotifyLoginRequiresVerification(IPrincipal currentUser, string? userId) => Notify(currentUser,
|
||||
(currentUserId, ip) => new UserLoginRequiresVerificationNotification(ip, userId, currentUserId)
|
||||
);
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ namespace Umbraco.Cms.Web.BackOffice.Security
|
||||
AuthenticationProperties ConfigureExternalAuthenticationProperties(string provider, string? redirectUrl, string? userId = null);
|
||||
Task<SignInResult> ExternalLoginSignInAsync(ExternalLoginInfo loginInfo, bool isPersistent, bool bypassTwoFactor = false);
|
||||
Task<IEnumerable<AuthenticationScheme>> GetExternalAuthenticationSchemesAsync();
|
||||
Task<ExternalLoginInfo> GetExternalLoginInfoAsync(string? expectedXsrf = null);
|
||||
Task<ExternalLoginInfo?> GetExternalLoginInfoAsync(string? expectedXsrf = null);
|
||||
Task<BackOfficeIdentityUser> GetTwoFactorAuthenticationUserAsync();
|
||||
Task<SignInResult> PasswordSignInAsync(string userName, string password, bool isPersistent, bool lockoutOnFailure);
|
||||
Task SignOutAsync();
|
||||
Task SignInAsync(BackOfficeIdentityUser user, bool isPersistent, string? authenticationMethod = null);
|
||||
Task SignInAsync(BackOfficeIdentityUser? user, bool isPersistent, string? authenticationMethod = null);
|
||||
Task<ClaimsPrincipal> CreateUserPrincipalAsync(BackOfficeIdentityUser user);
|
||||
Task<SignInResult> TwoFactorSignInAsync(string? provider, string? code, bool isPersistent, bool rememberClient);
|
||||
Task<IdentityResult> UpdateExternalAuthenticationTokensAsync(ExternalLoginInfo externalLogin);
|
||||
|
||||
Reference in New Issue
Block a user