1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2024-12-25 23:23:21 -05:00

User insecure cookies to allow non-HTTPS sessions

This commit is contained in:
Aaron Lindsay 2017-12-05 05:42:11 -05:00
parent e4defb7348
commit 3f28e083e7

View File

@ -102,7 +102,7 @@ func NewSession(tx *Tx, r *http.Request, userid int64) (*NewSessionWriter, error
Path: "/",
Domain: r.URL.Host,
Expires: time.Now().AddDate(0, 1, 0), // a month from now
Secure: true,
Secure: false,
HttpOnly: true,
}