public void Register() { Console.Clear(); // Enter Username string username = JHelper.InputString("Enter Username: "******""; string confirmPassword = "******"; while (password != confirmPassword) { password = JHelper.InputPassword("Enter Password: "******"Confirm Password: "******"> Please Enter the Same Password"); } } Logic.Register(username, password); Console.WriteLine("User Registered. You may now log in to your account."); JHelper.ContinuePrompt(); }
public void CreateCommunity() { Console.Clear(); Title("Create Community"); string name = JHelper.InputString("Enter Community Name: ", validator: ValidCommunityName).ToLower();; Logic.CreateCommunity(name); Console.WriteLine("Community Created"); JHelper.ContinuePrompt(); }
public void Login() { while (true) { Console.Clear(); // Enter Username string username = JHelper.InputString("Enter Username: "******"Enter Password: "******"Please Enter A Valid Username and Password"); JHelper.ContinuePrompt(); } MainMenu(); }