Fixes: U4-4766 UmbracoMembershipProvider.ChangePassword() is seal, what might be a breaking change?
This commit is contained in:
@@ -291,7 +291,7 @@ namespace Umbraco.Core.Security
|
||||
/// <remarks>
|
||||
/// Checks to ensure the AllowManuallyChangingPassword rule is adhered to
|
||||
/// </remarks>
|
||||
public sealed override bool ChangePassword(string username, string oldPassword, string newPassword)
|
||||
public override bool ChangePassword(string username, string oldPassword, string newPassword)
|
||||
{
|
||||
if (oldPassword.IsNullOrWhiteSpace() && AllowManuallyChangingPassword == false)
|
||||
{
|
||||
@@ -388,7 +388,7 @@ namespace Umbraco.Core.Security
|
||||
/// <remarks>
|
||||
/// Ensures the ValidatingPassword event is executed before executing PerformCreateUser and performs basic membership provider validation of values.
|
||||
/// </remarks>
|
||||
public sealed override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
|
||||
public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
|
||||
{
|
||||
var valStatus = ValidateNewUser(username, password, email, passwordQuestion, passwordAnswer, isApproved, providerUserKey);
|
||||
if (valStatus != MembershipCreateStatus.Success)
|
||||
@@ -476,7 +476,7 @@ namespace Umbraco.Core.Security
|
||||
/// <param name="username"></param>
|
||||
/// <param name="answer"></param>
|
||||
/// <returns></returns>
|
||||
public sealed override string GetPassword(string username, string answer)
|
||||
public override string GetPassword(string username, string answer)
|
||||
{
|
||||
if (EnablePasswordRetrieval == false)
|
||||
throw new ProviderException("Password Retrieval Not Enabled.");
|
||||
@@ -495,7 +495,7 @@ namespace Umbraco.Core.Security
|
||||
/// <returns></returns>
|
||||
protected abstract string PerformGetPassword(string username, string answer);
|
||||
|
||||
public sealed override string ResetPassword(string username, string answer)
|
||||
public override string ResetPassword(string username, string answer)
|
||||
{
|
||||
if (EnablePasswordReset == false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user