Exemplo n.º 1
0
        private void BtnVerifyEmail_Click(object sender, EventArgs e)
        {
            Verifcation vf   = new Verifcation();
            string      pass = vf.getPasswordfromEmail(txtEmail.Text);

            ticks1 = 60;
            if (txtEmail.Text == "")
            {
                MessageBox.Show("Please! Enter your Email Address...", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (pass != "")
            {
                fromThis = true;
                email    = txtEmail.Text;
                timer3.Start();
                ticks2 = 3;
                miniLoadEmail.Visible = true;
            }
            else
            {
                fromThis = false;
                number   = "";
                lblInvalidEmail.Visible = true;
            }
        }
Exemplo n.º 2
0
        private void BtnVerifyNumber_Click(object sender, EventArgs e)
        {
            Verifcation vf   = new Verifcation();
            string      pass = vf.getPassword(txtMobileNumber.Text);

            ticks1 = 60;
            if (txtMobileNumber.Text == "")
            {
                MessageBox.Show("Please! Enter your Mobile Number...", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else if (pass != "")
            {
                fromThis = true;
                number   = txtMobileNumber.Text;
                timer2.Start();
                ticks2 = 3;
                miniLoadMsg.Visible = true;
            }
            else
            {
                fromThis = false;
                number   = "";
                lblInvalidNumber.Visible = true;
            }
        }
Exemplo n.º 3
0
 private void DummyEmail_Load(object sender, EventArgs e)
 {
     if (UserForgotPassword.fromThis)
     {
         Verifcation vf = new Verifcation();
         lblCODE.Text = vf.getPasswordfromEmail(UserForgotPassword.email);
     }
     else
     {
         Signin s = new Signin();
         lblCODE.Text = s.getCipher(UserSignin.username);
     }
 }
Exemplo n.º 4
0
 private void DummyMobileMessage_Load(object sender, EventArgs e)
 {
     if (UserForgotPassword.fromThis)
     {
         Verifcation vf = new Verifcation();
         lblCODE.Text = vf.getPassword(UserForgotPassword.number);
     }
     else
     {
         Signin s = new Signin();
         lblCODE.Text = s.getCipher(UserSignin.username);
         //SecurityCode.cipher = lblCODE.Text;
     }
 }