Beispiel #1
0
 protected void BtnChange_Click(object sender, EventArgs e)
 {
     if (pass.Text != pass2.Text)
     {
         Msg3.Visible = true;
         Msg3.Text    = "אימות סיסמה נכשל נא הזן שוב אימות סיסמה";
         pass2.Focus();
     }
     else
     {
         bool b = GlobFuncs.UpdateDB("CustomersTable", "Password", GlobFuncs.Hash(pass.Text.ToString()), "Email", TxtForget.Text.ToString());
         if (b == true)
         {
             person per = new person();
             per = (person)Session["Person"];
             Response.Redirect("PrivateArea.aspx");
         }
         else
         {
             Msg3.Text = "התרחשה שגיאה בעת עדכון הסיסמה, נא נסה שנית";
         }
     }
 }