public void onForgetPassword() { if (usernameInput.text == "") { ResultText.text = "Enter username!"; return; } BacktoryUser.ForgotPasswordInBackground(usernameInput.text, response => { ResultText.text = response.Successful ? "Forgot password succeeded." : "failed; " + response.Message; }); }
// Forgetting password function public void onForgotpassClick() { string username = usernameInputlog.text; // Requesting forget password to backtory BacktoryUser.ForgotPasswordInBackground(username, response => { if (response.Successful) { myMessageBoxlogin.SetMessage("کلمه عبور جدید به ایمیلت ارسال شد."); // Showforgotpass(); // Debug.Log("Go to your mail inbox and verify your request."); } else { Debug.Log("failed; " + response.Message); } }); }