コード例 #1
0
        // Updates an user password with a new password.
        public User UpdatePassword(int userID, string newpassword)
        {
            string s = account.CreatePasswordHash(newpassword);

            char[] splitter  = { ':' };
            var    split     = s.Split(splitter);
            string salt      = split[0];
            string hashValue = split[1];

            return(userDB.UpdateUser(userID, salt, hashValue));
        }