Example #1
0
        /// <summary>
        /// Logs a user in to the system.
        /// </summary>
        /// <param name="informations"></param>
        public void Login(List <string> informations)
        {
            CustomUser user = new CustomUser
            {
                Username = informations[0],
                Password = informations[1],
                Email    = informations[2],
                Wallet   = Double.Parse(informations[3])
            };

            Console.WriteLine("Login a user");
            ctr_user.LogIn(user);
        }
Example #2
0
 public void LogIn(CustomUser user)
 {
     ctrl.LogIn(user);
 }