Esempio n. 1
0
        public bool LogIn(string mail, string password)
        {
            bool ifLogsIn = false;

            if (users.ContainsKey(mail))
            {
                Professional professional = users[mail];

                ifLogsIn = professional.Password == password;
                if (ifLogsIn)
                {
                    connectedUser = professional.Mail;
                }
                Console.WriteLine("Mail " + professional.Mail);
            }
            return(ifLogsIn);
        }
Esempio n. 2
0
        public void AddUser(string mail, string password, string name)
        {
            Professional professional = new Professional(mail, password, name);

            users.Add(mail, professional);
        }