Example #1
0
        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);
        }
Example #2
0
 public bool PasswordCorrect(string rawPassword, string MD5Password)
 {
     return(User.GetMd5Hash(rawPassword) == MD5Password);
 }