Fixes: U4-4766 UmbracoMembershipProvider.ChangePassword() is seal, what might be a breaking change?

This commit is contained in:
Shannon
2014-04-28 19:19:48 +10:00
parent e0e12d5773
commit 2f53698bc5

View File

@@ -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)
{