Compare commits
No commits in common. "aecafc29863a0c7cb32f6d995e625a9a26be3284" and "9ce19b94b4f4983fd95791abfb4a0e2f592b1256" have entirely different histories.
aecafc2986
...
9ce19b94b4
2
pkg.go
2
pkg.go
@ -64,7 +64,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const VERSION = "v0.2.13"
|
||||
const VERSION = "v0.2.12"
|
||||
|
||||
type HttpHandler func(http.ResponseWriter, *http.Request)
|
||||
|
||||
|
@ -75,13 +75,6 @@ func (service *Service) sessionNew(w http.ResponseWriter, r *http.Request, foo *
|
||||
},
|
||||
)
|
||||
|
||||
cookie := http.Cookie{}
|
||||
cookie.Name = "X-Session-ID"
|
||||
cookie.Value = sess.UUID
|
||||
cookie.MaxAge = 86400 * 365
|
||||
cookie.Path = "/"
|
||||
http.SetCookie(w, &cookie)
|
||||
|
||||
w.Write(respJSON)
|
||||
} // }}}
|
||||
func (service *Service) sessionAuthenticate(w http.ResponseWriter, r *http.Request, sess *session.T) { // {{{
|
||||
|
Loading…
Reference in New Issue
Block a user