Beispiel #1
0
 private void SignUp()
 {
     if (ManageSystem.CheckSignUpIfValid(txtUsername_SignUp.Text, txtEmail_SignUp.Text, txtPassword_SignUp.Text, txtRePassword_SignUp.Text))
     {
         if (ManageSystem.CheckSignUp(txtUsername_SignUp.Text, txtEmail_SignUp.Text, txtPassword_SignUp.Text, txtRePassword_SignUp.Text))
         {
             string encodedPassword = ManageSystem.EncryptPassword(txtPassword_SignUp.Text);
             ManageSystem.AddUser(txtUsername_SignUp.Text, txtEmail_SignUp.Text, encodedPassword);
             InitLoadingForm(ManageSystem.GetUserID(txtUsername_SignUp.Text));
         }
         else
         {
             return;
         }
     }
     else
     {
         return;
     }
 }