tango-app-ui-auth 3.5.0-beta.8-prod-dev12 → 3.5.0-beta.8-prod-dev13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -267,7 +267,7 @@ class TangoAuthLoginComponent {
|
|
|
267
267
|
}
|
|
268
268
|
onCaptchaResolved(token) {
|
|
269
269
|
this.captchaToken = token;
|
|
270
|
-
console.log('Captcha token:', token);
|
|
270
|
+
// console.log('Captcha token:', token);
|
|
271
271
|
this.cd.detectChanges();
|
|
272
272
|
}
|
|
273
273
|
ngOnDestroy() {
|
|
@@ -375,7 +375,8 @@ class TangoAuthLoginComponent {
|
|
|
375
375
|
this.credentials.password = originalPassword;
|
|
376
376
|
this.hasError = true;
|
|
377
377
|
if (this.pageSection === 'otp') {
|
|
378
|
-
|
|
378
|
+
const errorMessage = err?.error?.message || err?.error?.error || err?.message || 'Invalid OTP';
|
|
379
|
+
this.toastService.getErrorToast(errorMessage);
|
|
379
380
|
}
|
|
380
381
|
else {
|
|
381
382
|
this.handleLoginError(err);
|