public void Createaccount() { Console.WriteLine("Insert username:"******"Insert password:"******"Insert email:"); string email = Console.ReadLine(); AccountMgr.CreateAccount(username, password, email); }
public static List<GenericSerializableResponsePacket> RegisterAccount(RegistrationPacket packet, ClientContext uContext) { List<GenericSerializableResponsePacket> responsePackets = new List<GenericSerializableResponsePacket>(); bool result = AccountMgr.CreateAccount(packet.Username, packet.Psw, packet.Email); GenericSerializableResponsePacket grp = new GenericSerializableResponsePacket { Response = new RegistrationResponse { MessageType = MessageType.MSG_TYPE_REGISTRATION_RESPONSE, Result = result }, SenderType = SenderType.Server }; responsePackets.Add( grp ); return responsePackets; }