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))),
|
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)
|
||||||
}
|
}
|
||||||
|
|||||||
2
klice.go
2
klice.go
@@ -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: "",
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user