File tree Expand file tree Collapse file tree
TMessagesProj/src/main/java/org/telegram/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6941,6 +6941,8 @@ public void onNextPressed(String code) {
69416941 } else if (error.text.contains("CODE_EMPTY") || error.text.contains("CODE_INVALID") || error.text.contains("EMAIL_CODE_INVALID") || error.text.contains("PHONE_CODE_INVALID")) {
69426942 shakeWrongCode();
69436943 isWrongCode = true;
6944+ } else if (error.text.contains("EMAIL_NOT_ALLOWED")) {
6945+ needShowAlert(getString(R.string.RestorePasswordNoEmailTitle), getString(R.string.EmailNotAllowed));
69446946 } else if (error.text.contains("EMAIL_TOKEN_INVALID")) {
69456947 needShowAlert(getString(R.string.RestorePasswordNoEmailTitle), getString(R.string.EmailTokenInvalid));
69466948 } else if (error.text.contains("EMAIL_VERIFY_EXPIRED")) {
Original file line number Diff line number Diff line change @@ -1996,6 +1996,8 @@ private void setNewPassword(final boolean clear) {
19961996 } else {
19971997 if ("EMAIL_INVALID" .equals (error .text )) {
19981998 showAlertWithText (LocaleController .getString (R .string .AppName ), LocaleController .getString (R .string .PasswordEmailInvalid ));
1999+ } else if ("EMAIL_NOT_ALLOWED" .equals (error .text )) {
2000+ showAlertWithText (LocaleController .getString (R .string .AppName ), LocaleController .getString (R .string .EmailNotAllowed ));
19992001 } else if (error .text .startsWith ("FLOOD_WAIT" )) {
20002002 int time = Utilities .parseInt (error .text );
20012003 String timeString ;
You can’t perform that action at this time.
0 commit comments