1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-13 06:43:20 +00:00

Set up captcha iframe only on submit of login (#453)

This commit is contained in:
Matt Gibson
2021-08-12 16:10:07 -04:00
committed by GitHub
parent c70c8ecc24
commit 26e8b48deb

View File

@@ -65,11 +65,11 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
if (Utils.isBrowser && !Utils.isNode) {
this.focusInput();
}
this.setupCaptcha();
}
async submit() {
await this.setupCaptcha();
if (this.email == null || this.email === '') {
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'),
this.i18nService.t('emailRequired'));