mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 03:33:54 +00:00
Turns out the HCaptcha accessibility feature on desktop stopped working a while back. This PR resolves it and tweaks the implementation to use norefeerer and noopener for improved sandboxing. This comes with the slight tweak in behaviour namely we now get the cookie when you click the back button. To fix hcaptcha not working I needed to use the correct session storage.
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<form id="accessibility-cookie-page" #form [formGroup]="accessibilityForm" (ngSubmit)="submit()">
|
|
<div class="content">
|
|
<h1>{{ "loadAccessibilityCookie" | i18n }}</h1>
|
|
<p>
|
|
{{ "registerAccessibilityUser" | i18n }}
|
|
<a (click)="registerhCaptcha()">hcaptcha.com</a>.
|
|
{{ "copyPasteLink" | i18n }}
|
|
</p>
|
|
<div class="box last">
|
|
<div class="box-content">
|
|
<div class="box-content-row" appBoxRow>
|
|
<label for="link">{{ "hCaptchaUrl" | i18n }}</label>
|
|
<input
|
|
id="link"
|
|
type="text"
|
|
name="Link"
|
|
aria-describedby="linkHelp"
|
|
formControlName="link"
|
|
placeholder="{{ 'ex' | i18n }} https://accounts.hcaptcha.com/verify_email"
|
|
appAutofocus
|
|
appInputVerbatim
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div id="linkHelp" class="box-footer">{{ "enterhCaptchaUrl" | i18n }}</div>
|
|
</div>
|
|
<div class="buttons">
|
|
<button type="submit" class="btn primary block" [disabled]="!accessibilityForm.valid">
|
|
{{ "submit" | i18n }}
|
|
</button>
|
|
<button type="button" (click)="close()" class="btn block">{{ "done" | i18n }}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|