mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
Feature/use hcaptcha if bot (#1000)
* Add captcha to login component * Add catpcha to login page * Update content width if captcha is visible * extend submit to handle widening if captcha is required * Improve login styling * Add Captcha to registration page * Remove padding from captcha div The padding was messing up image selection of captcha items * Update jslib * PR review * update jslib
This commit is contained in:
@@ -106,4 +106,12 @@ export class LoginComponent extends BaseLoginComponent implements OnDestroy {
|
||||
onWindowHidden() {
|
||||
this.showPassword = false;
|
||||
}
|
||||
|
||||
async submit() {
|
||||
await super.submit();
|
||||
if (this.captchaSiteKey) {
|
||||
const content = document.getElementById('content') as HTMLDivElement;
|
||||
content.setAttribute('style', 'width:335px');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user