Esempio n. 1
0
 protected void signinButton_Click(object sender, EventArgs e)
 {
     if (!String.IsNullOrEmpty(emailTB.Text) && !String.IsNullOrEmpty(pwdTB.Text))
     {
         String filepath = Server.MapPath("Solution Items/TextFile1.txt");
         AccntService.AccountServicesClient accountService = new AccntService.AccountServicesClient();
         bool status = accountService.authenticateUser(emailTB.Text, pwdTB.Text, filepath);
         if (status)
         {
             StatusLabel.Text = "Login Successful";
         }
         else
         {
             StatusLabel.Text = "Login Unsucessful, please check password/email.";
         }
     }
     else
     {
         StatusLabel.Text = "Both fields need are mandatory";
     }
 }