static void Main(string[] args) { blAccess bl = new blAccess(); Console.Out.WriteLine("Please enter your login :"******"Please enter your password :"******"Only journalist are authorized"); } } else { Console.Out.WriteLine("Could not find a user with such credentials..."); } Console.In.ReadLine(); }
public People connectUser(string username, string password) { People connectedUser = null; User user = bl.getUser(username, password); if (user != null) { if (bl.isJournalist(user)) { connectedUser = new People(user); } } return(connectedUser); }