/// <summary>
        /// Reset a user password creating a new one.
        /// </summary>
        /// <param name="user"></param>
        /// <returns>The new password</returns>
        public string ResetPassword(User user)
        {
            string password = user.GeneratePassword();

             // Save the user
             userService.SaveUser(user);

             return password;
        }
Exemple #2
0
        public string ResetPassword(User user)
        {
            string newPassword = user.GeneratePassword();

             SaveUser(user);
             return newPassword;
        }