SetPassword() public method

public SetPassword ( string password ) : void
password string
return void
Exemplo n.º 1
0
        public static User CreateNewUser(string username, string password, bool admin)
        {
            User newUser = new User();
            newUser.Username = username;
            newUser.SetPassword(password);
            newUser.Admin = admin;

            return newUser;
        }