Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Show()
- {
- while (true)
- {
- Console.Clear();
- Console.Write("Username : ");
- string username = Console.ReadLine();
- Console.Write("Password : ");
- string password = Console.ReadLine();
- Authentication.AuthenticateUser(username, password);
- if (Authentication.LoggedUser != null)
- {
- Console.WriteLine("Welcome " + Authentication.LoggedUser.username);
- Console.ReadKey(true);
- break;
- }
- else
- {
- Console.WriteLine("Invalid username or password");
- Console.ReadKey(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement