Exemple #1
0
        public User(int id, string username, string phoneNumber, string emailAddress,
                    string password, int permissionLevel)
        {
            User_Login lg = new User_Login(emailAddress, password);

            if (ValidateLogin(lg))
            {
                _valid = true;
            }
            _id              = id;
            _username        = username;
            _phone_number    = phoneNumber;
            _email_address   = emailAddress;
            _password        = password;
            _permissionLevel = permissionLevel;
        }
Exemple #2
0
 private Boolean ValidateLogin(User_Login lg)
 {
     return(lg.isValid());
 }