Exemplo n.º 1
0
 void LogIn()
 {
     UI.DisplayUserNameLogIn();
     userName = UI.GetUserInput();
     UI.DisplayPassWordLogIn();
     passWord = UI.GetUserInput();
     if (management.CheckPreviousUserName(userName) == true)
     {
         if (management.CheckPassWordMatchToUserID(management.MatchUserNameToUserNameID(userName)) == false)
         {
             UI.DisplayIncorrectLogIn();
             LogIn();
         }
         else
         {
             userID      = management.MatchUserNameToUserNameID(userName);
             statusLevel = management.MatchUserIDToUserStatus(userID);
         }
     }
 }