This commit is contained in:
2025-10-18 18:34:06 +02:00
parent 5dfffcbcb7
commit 2c9da94143
3 changed files with 2 additions and 3 deletions

View File

@@ -38,7 +38,6 @@ func adminLoginHandler(w http.ResponseWriter, r *http.Request) {
Value: base64.StdEncoding.EncodeToString([]byte(username + ":" + hashPassword(password))), Value: base64.StdEncoding.EncodeToString([]byte(username + ":" + hashPassword(password))),
Path: "/admin/", Path: "/admin/",
HttpOnly: true, HttpOnly: true,
MaxAge: 3600,
}) })
http.Redirect(w, r, "/admin/", http.StatusSeeOther) http.Redirect(w, r, "/admin/", http.StatusSeeOther)
} }

View File

@@ -211,7 +211,7 @@ func qrHandler(w http.ResponseWriter, r *http.Request) {
} }
CipherTemplateData := CipherTemplateS{ CipherTemplateData := CipherTemplateS{
Order: uint(cipherID), Order: uint(order),
Assignment: template.HTML(assignment), Assignment: template.HTML(assignment),
HelpText: "", HelpText: "",
FinalClue: "", FinalClue: "",

View File

@@ -17,7 +17,7 @@
</tr> </tr>
{{range .QRs}} {{range .QRs}}
<tr> <tr>
<td>{{.URL}}</td> <td><a href="{{.URL}}">{{.URL}}</a></td>
<td>{{.Position}}</td> <td>{{.Position}}</td>
<td>{{.GPS}}</td> <td>{{.GPS}}</td>
<td> <td>