Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void registerMenu(out string email, out string username, out string password, out string phoneNumber, out string isAdmin)
- {
- do
- {
- if (adminRegisterer == false)
- {
- isAdmin = "0";
- }
- else
- {
- isAdmin = "1";
- }
- string passwordConfirm;
- Console.Clear();
- Console.WriteLine("To the registration, please give the following informations.");
- //felhasználói adatok bekérése
- Console.WriteLine("Email cím: ");
- email = Convert.ToString(Console.ReadLine());
- Console.WriteLine("Teljes név: ");
- username = Convert.ToString(Console.ReadLine());
- //a két bekért jelszó egyezésének ellenőrzése
- bool actualCorrectionCheck = false;
- do
- {
- Console.WriteLine("Jelszó: ");
- password = Convert.ToString(Console.ReadLine());
- Console.WriteLine("Jelszó újra: ");
- passwordConfirm = Convert.ToString(Console.ReadLine());
- if (password != passwordConfirm)
- {
- Console.WriteLine("A két megadott jelszónak meg kell egyeznie!\nKérem adja meg újra!");
- }
- else
- {
- actualCorrectionCheck = true;
- }
- } while (actualCorrectionCheck == false);
- phoneNumber = null;
- phoneNumber = phoneNumberCorrection(ref phoneNumber);
- Console.Clear();
- Console.WriteLine("Successful registration!\n");
- Console.WriteLine("Registered account datas:");
- Console.WriteLine("Name: " + username);
- Console.WriteLine("Password: " + password);
- Console.WriteLine("Email: " + email);
- Console.WriteLine("Phone Number: " + phoneNumber + "\n");
- Console.WriteLine("Press any key to continue...");
- Console.ReadKey();
- Console.Clear();
- return;
- } while (true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement