summaryrefslogtreecommitdiffstats
path: root/routers/web/auth/webauthn.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/auth/webauthn.go')
-rw-r--r--routers/web/auth/webauthn.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/auth/webauthn.go b/routers/web/auth/webauthn.go
index bedbe7ddc3..c0cf58f3d3 100644
--- a/routers/web/auth/webauthn.go
+++ b/routers/web/auth/webauthn.go
@@ -39,7 +39,7 @@ func WebAuthn(ctx *context.Context) {
return
}
- ctx.HTML(200, tplWebAuthn)
+ ctx.HTML(http.StatusOK, tplWebAuthn)
}
// WebAuthnLoginAssertion submits a WebAuthn challenge to the browser
@@ -166,5 +166,5 @@ func WebAuthnLoginAssertionPost(ctx *context.Context) {
}
}
- ctx.JSON(200, map[string]string{"redirect": redirect})
+ ctx.JSON(http.StatusOK, map[string]string{"redirect": redirect})
}