mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-02 23:11:40 +01:00
Set up captcha iframe only on submit of login (#453)
This commit is contained in:
parent
c70c8ecc24
commit
26e8b48deb
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user