Exemplo n.º 1
0
        public bool ResetPassword(MemberInfo memberInfo)
        {
            var member = _memberRepo.GetMemberByAcc(memberInfo.m_account);

            if (member != null)
            {
                var hash_new_password = HashPassword(memberInfo.new_password);
                return(_memberRepo.UpdatePassword(member, hash_new_password));;
            }
            return(false);
        }