update cookie settings

This commit is contained in:
Wim Brand
2020-02-05 11:56:08 +01:00
parent 650c7ede6c
commit ea6d8bf6c8
3 changed files with 10 additions and 0 deletions

View File

@@ -172,6 +172,8 @@ func (wc *WebController) loginForm(td *TemplateData, r *http.Request) (f Form) {
// Request was a success
f.SubmitSuccess = true
f.SubmitMessages = []template.HTML{"Success!"}
// Set the autentication cookie
f.Extra.SetCookie = &http.Cookie{
Name: "pd_auth_key",
Value: loginResp.APIKey,