diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-10-20 17:33:56 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-10-20 18:02:54 -0700 |
| commit | 9b0e3f5b92f20d7743b09a8e285a39d32c72b926 (patch) | |
| tree | e7fb08b000e8c48962434e76c930e30ef12aa675 /templates/register/register.html.template | |
| parent | Remove a lot of files that aren't necessary (diff) | |
| download | roseh.moe-9b0e3f5b92f20d7743b09a8e285a39d32c72b926.tar.zst | |
Fix some random security issues
Diffstat (limited to 'templates/register/register.html.template')
| -rw-r--r-- | templates/register/register.html.template | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/register/register.html.template b/templates/register/register.html.template index 3b4d959..833a1a7 100644 --- a/templates/register/register.html.template +++ b/templates/register/register.html.template @@ -40,6 +40,10 @@ async function generateKey() { const name = document.getElementById("name").value; const publicKeyCredential = await navigator.credentials.create({publicKey: { + authenticatorSelection: { + residentKey: "required", + userVerification: "required", + }, challenge: Uint8Array.fromBase64("{{.Challenge}}").buffer, pubKeyCredParams: [ {alg: -9, type: "public-key"}, |
