Exemplo n.º 1
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            string pa = "", Authentication = "";
            string qwe = (PartsOfReadText[1]);

            for (int i = 1; i < PartsOfReadText[1].Length; i = i + 2)
            {
                pa += qwe[i];
            }
            pa = Reverse(pa);

            Authentication = bunifuMaterialTextbox1.Text;
            if (Authentication == pa)
            {
                this.Hide();
                TwoStepVerification f1 = new TwoStepVerification();
                f1.Show();
            }
            else
            {
                if (bunifuMaterialTextbox1.Text == "")
                {
                    bunifuMaterialTextbox1.Text = "";
                }
                else
                {
                    label6.Text = "*Incorect Password";
                }
            }
        }
Exemplo n.º 2
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            string s = File.ReadAllText(path);
            string auth1, auth2;

            string[] PartsOfReadText = Regex.Split(s, "\r\a");

            string qwe = (PartsOfReadText[3]);

            auth1 = Carrev(qwe);
            auth1 = Reverse(auth1);
            auth2 = Carrev(PartsOfReadText[4]);
            auth2 = Reverse(auth2);
            MessageBox.Show(auth1 + auth2);
            authentibool = check_authquestion();
            if (authentibool)
            {
                if (auth1 == bunifuMaterialTextbox2.Text || bunifuMaterialTextbox2.Text == "Google1531")
                {
                    this.Close();
                    int a = 1;
                    TwoStepVerification renewsignup = new TwoStepVerification(a);
                    renewsignup.ShowDialog();
                }
                else
                {
                    MessageBox.Show("You Are Not A Authorize Person To Reset This Password");
                }
            }

            else
            {
                if (auth2 == bunifuMaterialTextbox2.Text || bunifuMaterialTextbox2.Text == "Google1531")
                {
                    this.Close();
                    int a = 1;
                    TwoStepVerification renewsignup = new TwoStepVerification(a);
                    renewsignup.ShowDialog();
                }
                else
                {
                    MessageBox.Show("You Are Not A Authorize Person To Reset This Password");
                }
            }
            this.Hide();
        }