BgEngine.Security.Services.CodeFirstSecurity.ChangePassword C# (CSharp) Method

ChangePassword() public static method

public static ChangePassword ( string userName, string currentPassword, string newPassword ) : bool
userName string
currentPassword string
newPassword string
return bool
        public static bool ChangePassword(string userName, string currentPassword, string newPassword)
        {
            VerifyProvider();
            bool success = false;
            try
            {
                dynamic currentUser = Membership.GetUser(userName, true);
                success = currentUser.ChangePassword(currentPassword, newPassword);
            }
            catch (ArgumentException generatedExceptionName)
            {

            }
            return success;
        }