mirror of
https://github.com/wahyd4/loginsrv.git
synced 2026-08-09 04:46:29 +10:00
Caddy - Use {user} placeholder for logs #32
This commit is contained in:
+2
-2
@@ -131,7 +131,7 @@ func (h *Handler) handleLogin(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
if r.Method == "GET" {
|
||||
userInfo, valid := h.getToken(r)
|
||||
userInfo, valid := h.GetToken(r)
|
||||
writeLoginForm(w,
|
||||
loginFormData{
|
||||
Config: h.config,
|
||||
@@ -152,7 +152,7 @@ func (h *Handler) handleLogin(w http.ResponseWriter, r *http.Request) {
|
||||
h.handleAuthentication(w, r, username, password)
|
||||
return
|
||||
}
|
||||
userInfo, valid := h.getToken(r)
|
||||
userInfo, valid := h.GetToken(r)
|
||||
if valid {
|
||||
h.handleRefresh(w, r, userInfo)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user