//creeate a method that send an email to reset the password
 private void ResetPassword(string email)
 {
     try
     {
         //create a funtion that send reset password to the email
         auth.SendPasswordResetEmail(email)
         .AddOnCompleteListener(this, this);
     }
     catch (Exception e)
     {
         //create exception if the email is blank
         Toast.MakeText(this, "Failed", ToastLength.Short).Show();
     }
 }
 private void ResetPassword(string mail)
 {
     if (resmail.Text.Trim() != "")
     {
         forgotHolder.Visibility = ViewStates.Gone;
         forgotpgb.Visibility    = ViewStates.Visible;
         reslogin.Visibility     = ViewStates.Gone;
         auth.SendPasswordResetEmail(mail)
         .AddOnCompleteListener(this, this);
     }
     else
     {
         resmail.SetError("Required", null);
     }
 }
Esempio n. 3
0
        private void BtnRegister_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(InputEmail.Text) && string.IsNullOrWhiteSpace(InputEmail.Text))
            {
                InputEmail.Error = "Please provide your email";//, ToastLength.Long).Show();
                return;
            }

            BtnRegister.Enabled = false;
            loadingDialog       = new IonAlert(context, IonAlert.ProgressType);
            loadingDialog.SetSpinKit("WanderingCubes")
            .SetSpinColor("#008D91")
            .ShowCancelButton(false)
            .Show();
            auth = FirebaseAuth.Instance;
            auth.SendPasswordResetEmail(InputEmail.Text.Trim())
            .AddOnFailureListener(this)
            .AddOnSuccessListener(this)
            .AddOnCompleteListener(this);
        }
Esempio n. 4
0
        private void ResetPassword(string email)
        {
#pragma warning disable CS0618 // El tipo o el miembro están obsoletos
            process = new ProgressDialog(this);
#pragma warning restore CS0618 // El tipo o el miembro están obsoletos
            if (Error())
            {
                auth.SendPasswordResetEmail(email)
                .AddOnCompleteListener(this, this);
                process.SetMessage("Validando informacion, espere.");
                process.Show();
            }
            else
            {
                if (process.IsShowing)
                {
                    process.Dismiss();
                }
                Snackbar snackBar = Snackbar.Make(forgotLayout, "Reset password failed, " + emailError, Snackbar.LengthShort);
                snackBar.Show();
            }
        }
Esempio n. 5
0
 private void ResetPassword(string email)
 {
     auth.SendPasswordResetEmail(email)
     .AddOnCompleteListener(this, this);
 }
Esempio n. 6
0
 public void ResetPassword(FirebaseAuth auth, string email)
 {
     auth.SendPasswordResetEmail(email)
     .AddOnSuccessListener(listener)
     .AddOnFailureListener(listener);
 }
 private void resetPassword(string email)
 {
     //use 'SendPasswordResetEmail' method
     auth.SendPasswordResetEmail(email)
     .AddOnCompleteListener(this, this);
 }
Esempio n. 8
0
 private void ForgotPassword_OnCompletePasswordRequest(object sender, onCompletePasswordRequestArgs e)
 {
     forgot_email = e.email;
     auth.SendPasswordResetEmail(forgot_email).AddOnCompleteListener(this);
 }