summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-10-20 17:33:56 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-10-20 18:02:54 -0700
commit9b0e3f5b92f20d7743b09a8e285a39d32c72b926 (patch)
treee7fb08b000e8c48962434e76c930e30ef12aa675 /templates
parentRemove a lot of files that aren't necessary (diff)
downloadroseh.moe-9b0e3f5b92f20d7743b09a8e285a39d32c72b926.tar.zst
Fix some random security issues
Diffstat (limited to 'templates')
-rw-r--r--templates/register/register.html.template4
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"},