17 lines
318 B
Go
17 lines
318 B
Go
package routing
|
|
|
|
import (
|
|
lishwist "lishwist/core"
|
|
"lishwist/http/session"
|
|
"net/http"
|
|
|
|
"github.com/Teajey/rsvp"
|
|
)
|
|
|
|
func LogoutPost(app *lishwist.Session, s *session.Session, h http.Header, r *http.Request) rsvp.Response {
|
|
s.Options().MaxAge = 0
|
|
s.ClearValues()
|
|
|
|
return rsvp.SeeOther("/", "Logout successful")
|
|
}
|