Add essential cookies consent gate on auth forms

This commit is contained in:
2026-02-06 23:44:42 +01:00
parent bab0fc6eaf
commit 7319188fdb
3 changed files with 39 additions and 0 deletions

View File

@@ -41,6 +41,12 @@
<span class="label" data-i18n="auth.password">Password</span>
<input id="login-password" name="password" type="password" autocomplete="current-password" required />
</label>
<label class="stack consent-row">
<span class="label">
<input id="login-consent" type="checkbox" />
<span data-i18n="auth.cookieLabel">I agree to essential cookies.</span>
</span>
</label>
<button type="submit" data-i18n="auth.loginSubmit">Log in</button>
</form>
<form id="register-form" class="stack auth-form hidden" data-mode="register">
@@ -60,6 +66,12 @@
<span class="label" data-i18n="auth.adminKey">Admin key (optional)</span>
<input id="register-adminkey" name="adminKey" type="password" maxlength="128" />
</label>
<label class="stack consent-row">
<span class="label">
<input id="register-consent" type="checkbox" />
<span data-i18n="auth.cookieLabel">I agree to essential cookies.</span>
</span>
</label>
<button type="submit" data-i18n="auth.registerSubmit">Create account</button>
</form>
<div class="stack">