public User Register(string UserName, string Password) { string Passwords = User.GetMd5Hash(Password); User user = new User { Name = UserName, Password = Passwords }; _userRepository.Save(user); return(user); }
public bool PasswordCorrect(string rawPassword, string MD5Password) { return(User.GetMd5Hash(rawPassword) == MD5Password); }