Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (21 sloc) 780 Bytes
using Umbraco.Web.Security.Providers;
namespace UmbracoIdentity
{
/// <summary>
/// A custom membership provider that inherits from the default Umbraco ones that allows
/// the use of the currently implemented password hashing mechanisms used in Umbraco.
/// </summary>
public class IdentityEnabledMembersMembershipProvider : MembersMembershipProvider
{
public string HashPasswordForStorage(string password)
{
string salt;
var hashed = EncryptOrHashNewPassword(password, out salt);
return FormatPasswordForStorage(hashed, salt);
}
public bool VerifyPassword(string password, string hashedPassword)
{
return CheckPassword(password, hashedPassword);
}
}
}
You can’t perform that action at this time.