summaryrefslogtreecommitdiffstats
path: root/roseh.moe.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-09-20 18:03:31 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-09-20 18:03:31 -0700
commitb5ee6ac430a6592b9a3d916848379759aa091544 (patch)
treee0ab9959bac0de6d39810e6287be8e628f873d89 /roseh.moe.go
parent88270f9fe48149fb382441466575dbb40744d06d (diff)
downloadroseh.moe-b5ee6ac430a6592b9a3d916848379759aa091544.tar.zst
Revert "idk"
This reverts commit 88270f9fe48149fb382441466575dbb40744d06d.
Diffstat (limited to 'roseh.moe.go')
-rw-r--r--roseh.moe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roseh.moe.go b/roseh.moe.go
index b785ec6..8c5a967 100644
--- a/roseh.moe.go
+++ b/roseh.moe.go
@@ -162,7 +162,7 @@ func checkCookie(w http.ResponseWriter, r *http.Request) bool {
return false
}
msg, sig := bytes[:len(bytes)-ed25519.SignatureSize], bytes[len(bytes)-ed25519.SignatureSize:]
- if !ed25519.Verify(privateKey.Public().(ed25519.PublicKey), msg, sig) {
+ if !ed25519.Verify(publicKey, msg, sig) {
fmt.Printf("bad sig\n")
return false
}