Exemple #1
0
        public void GetUsertInfo(string Username, out string Last_Name, out string Given_Name, out string Middle_Name, out string Suffix, out string Email_Address)
        {
            int    AID, PID, SPC;
            string Uname, Pword, Role;


            Account ac = new Account();
            Person  p  = new Person();


            AID = ac.AccountGetID(Username);
            ac.AccountGetInfo(AID, out Uname, out Pword, out Role, out PID, out SPC);
            p.PersonGet(PID, out Last_Name, out Given_Name, out Middle_Name, out Suffix, out Email_Address);
        }
Exemple #2
0
        public bool AccountAuthenticate(string Username, string Password)
        {
            Account ac = new Account();
            string  Uname, Pword, Role;
            int     PID, SPC;
            int     AID = ac.AccountGetID(Username);

            ac.AccountGetInfo(AID, out Uname, out Pword, out Role, out PID, out SPC);
            if (Pword == Password)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }