mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Set up captcha iframe only on submit of login (#453)
This commit is contained in:
@@ -65,11 +65,11 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
|
|||||||
if (Utils.isBrowser && !Utils.isNode) {
|
if (Utils.isBrowser && !Utils.isNode) {
|
||||||
this.focusInput();
|
this.focusInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setupCaptcha();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async submit() {
|
async submit() {
|
||||||
|
await this.setupCaptcha();
|
||||||
|
|
||||||
if (this.email == null || this.email === '') {
|
if (this.email == null || this.email === '') {
|
||||||
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'),
|
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'),
|
||||||
this.i18nService.t('emailRequired'));
|
this.i18nService.t('emailRequired'));
|
||||||
|
|||||||
Reference in New Issue
Block a user