diff --git a/admin.go b/admin.go index f3d018b..e2383d7 100644 --- a/admin.go +++ b/admin.go @@ -38,7 +38,6 @@ func adminLoginHandler(w http.ResponseWriter, r *http.Request) { Value: base64.StdEncoding.EncodeToString([]byte(username + ":" + hashPassword(password))), Path: "/admin/", HttpOnly: true, - MaxAge: 3600, }) http.Redirect(w, r, "/admin/", http.StatusSeeOther) } diff --git a/klice.go b/klice.go index d526c93..74ff75d 100644 --- a/klice.go +++ b/klice.go @@ -211,7 +211,7 @@ func qrHandler(w http.ResponseWriter, r *http.Request) { } CipherTemplateData := CipherTemplateS{ - Order: uint(cipherID), + Order: uint(order), Assignment: template.HTML(assignment), HelpText: "", FinalClue: "", diff --git a/templates/adminQR.html b/templates/adminQR.html index bd1e3fe..9e4088b 100644 --- a/templates/adminQR.html +++ b/templates/adminQR.html @@ -17,7 +17,7 @@ {{range .QRs}}