Exemple #1
0
        public bool Login(string username, string pass)
        {
            bool      isfound = false;
            STUDENTDL stdlist = new STUDENTDL();

            foreach (STUDENT s in STUDENTDL.list)
            {
                if (s.UserName1 == username)
                {
                    if (s.Password1 == pass)
                    {
                        isfound = true;
                    }
                }
            }
            return(isfound);
        }
Exemple #2
0
 public void resetPass(string username, string pass)
 {
     STUDENTDL.resetPass(username, pass);
 }
Exemple #3
0
 public bool SetPassword(string username, string ques, string ans)
 {
     return(STUDENTDL.SetPassword(username, ques, ans));
 }