fix 1
This commit is contained in:
1
admin.go
1
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)
|
||||
}
|
||||
|
||||
2
klice.go
2
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: "",
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</tr>
|
||||
{{range .QRs}}
|
||||
<tr>
|
||||
<td>{{.URL}}</td>
|
||||
<td><a href="{{.URL}}">{{.URL}}</a></td>
|
||||
<td>{{.Position}}</td>
|
||||
<td>{{.GPS}}</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user