Add Ubuntu deployment: scripts, SSL, systemd and setup.sh
This commit is contained in:
@@ -81,12 +81,12 @@ func (h *AdminHandler) Login(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
h.session.SetCookie(w, token)
|
||||
h.session.SetCookie(w, r, token)
|
||||
http.Redirect(w, r, "/admin/", http.StatusSeeOther)
|
||||
}
|
||||
|
||||
func (h *AdminHandler) Logout(w http.ResponseWriter, r *http.Request) {
|
||||
h.session.ClearCookie(w)
|
||||
h.session.ClearCookie(w, r)
|
||||
http.Redirect(w, r, "/admin/login", http.StatusSeeOther)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user