1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-18 02:41:15 +02: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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'));