Exemplo n.º 1
0
        private MemberEntityDto SetHachPasswordToMember(MemberToLoginDto memberToLogin)
        {
            var memberEntityDto   = _mapper.Map <MemberEntityDto>(memberToLogin);
            var encryptedPassword = _passwordManager.SetPasswordHashAndSalt(memberToLogin.Password);

            memberEntityDto.PasswordHash = encryptedPassword.PasswordHash;
            memberEntityDto.PasswordSalt = encryptedPassword.PasswordSalt;
            return(memberEntityDto);
        }