예제 #1
0
        //requesting to add user
        public static void UserRegistration()
        {
            Console.WriteLine("enter user name");
            string name = Console.ReadLine();

            Console.WriteLine("enter password");
            Console.WriteLine("password should contain one Upper case,One special chatacter,minimum 5 lower case");
            string password = Console.ReadLine();

            Console.WriteLine("confirm password");
            string password1 = Console.ReadLine();

            if (password == password1)
            {
                if (Business.CheckUser(name, password))
                {
                    Console.WriteLine("request sent to user thank u!!!");
                    Userid       = name;
                    UserPassword = password;
                }
                else
                {
                    Console.WriteLine("enter valid username or password");
                }
            }
            else
            {
                Console.WriteLine("password is not matching");
            }
        }