示例#1
0
文件: User.cs 项目: joaofx/Miru
        public void ChangePassword(PasswordEdit.Command request)
        {
            if (HashedPassword.NotEqual(Hash.Create(request.CurrentPassword)))
            {
                throw new DomainException("Current password does not match");
            }

            HashedPassword = Hash.Create(request.Password);
        }