Esempio n. 1
0
File: User.cs Progetto: 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);
        }