示例#1
0
        public AuthResult ChangePassword(int userId, string oldPassword, string newPassword)
        {
            oldPassword.ThrowIfNull("oldPassword");
            newPassword.ThrowIfNull("newPassword");

            var identityResult    = _userManager.ChangePassword(userId, oldPassword, newPassword);
            var appIdentityResult = IdentityModelFactory.Create(identityResult);

            return(appIdentityResult);
        }