tango-app-ui-auth 3.5.0-beta.8-prod-dev8 → 3.5.0-beta.8-prod-dev9
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.
|
@@ -384,14 +384,16 @@ class TangoAuthLoginComponent {
|
|
|
384
384
|
this.router.navigate(['/auth/forgot-password']);
|
|
385
385
|
}
|
|
386
386
|
else {
|
|
387
|
-
|
|
387
|
+
this.captchaToken = null;
|
|
388
|
+
localStorage.removeItem(this.recaptchaSiteKey);
|
|
389
|
+
sessionStorage.removeItem(this.recaptchaSiteKey);
|
|
390
|
+
localStorage.clear();
|
|
391
|
+
if (window.grecaptcha) {
|
|
388
392
|
try {
|
|
389
|
-
|
|
390
|
-
// Or track widgetId from renderCaptcha
|
|
391
|
-
grecaptcha.reset(widgetId ?? undefined);
|
|
393
|
+
window.grecaptcha.reset();
|
|
392
394
|
}
|
|
393
|
-
catch (
|
|
394
|
-
console.warn('Captcha reset error:',
|
|
395
|
+
catch (err) {
|
|
396
|
+
console.warn('Captcha reset error:', err);
|
|
395
397
|
}
|
|
396
398
|
}
|
|
397
399
|
const errorMessage = err?.error?.message || err?.error?.error || err?.message || 'Enter Valid Credentials';
|