tango-app-ui-auth 3.5.0-beta.8-prod-dev8 → 3.5.0-beta.8-prod-dev10
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.
- package/esm2022/lib/components/tango-auth-forgot-password/tango-auth-forgot-password.component.mjs +10 -4
- package/esm2022/lib/components/tango-auth-login/tango-auth-login.component.mjs +9 -7
- package/fesm2022/tango-app-ui-auth.mjs +17 -9
- package/fesm2022/tango-app-ui-auth.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -1754,9 +1756,15 @@ class TangoAuthForgotPasswordComponent {
|
|
|
1754
1756
|
},
|
|
1755
1757
|
error: () => {
|
|
1756
1758
|
this.captchaToken = null;
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1759
|
+
localStorage.removeItem(this.recaptchaSiteKey);
|
|
1760
|
+
sessionStorage.removeItem(this.recaptchaSiteKey);
|
|
1761
|
+
if (window.grecaptcha) {
|
|
1762
|
+
try {
|
|
1763
|
+
window.grecaptcha.reset();
|
|
1764
|
+
}
|
|
1765
|
+
catch (err) {
|
|
1766
|
+
console.warn('Captcha reset error:', err);
|
|
1767
|
+
}
|
|
1760
1768
|
}
|
|
1761
1769
|
this.PasswordForm.get('password')?.setValue(password);
|
|
1762
1770
|
this.PasswordForm.get('confirmPassword')?.setValue(confirmPassword);
|