You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zeripath bcc13f3889
Reset Session ID on login (#18018)
* Reset Session ID on login

When logging in the SessionID should be reset and the session cleaned up.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* with new session.RegenerateID function

Signed-off-by: Andrew Thornton <art27@cantab.net>

* update go-chi/session

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Ensure that session id is changed after oauth data is set and between account linking pages too

Signed-off-by: Andrew Thornton <art27@cantab.net>

* placate lint

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per review

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
..
couchbase Fix recovery middleware to render gitea style page. (#13857) 4 years ago
memcache Fix recovery middleware to render gitea style page. (#13857) 4 years ago
mysql Fix recovery middleware to render gitea style page. (#13857) 4 years ago
postgres Fix recovery middleware to render gitea style page. (#13857) 4 years ago
.drone.yml Fix recovery middleware to render gitea style page. (#13857) 4 years ago
.gitignore Fix recovery middleware to render gitea style page. (#13857) 4 years ago
LICENSE Fix recovery middleware to render gitea style page. (#13857) 4 years ago
README.md Upgrade chi to v5 (#17298) 3 years ago
file.go Fix recovery middleware to render gitea style page. (#13857) 4 years ago
go.mod Upgrade chi to v5 (#17298) 3 years ago
go.sum Upgrade chi to v5 (#17298) 3 years ago
memory.go Fix recovery middleware to render gitea style page. (#13857) 4 years ago
secret.go Fix recovery middleware to render gitea style page. (#13857) 4 years ago
session.go Reset Session ID on login (#18018) 3 years ago
utils.go Fix recovery middleware to render gitea style page. (#13857) 4 years ago

README.md

Session

Middleware session provides session management which based on a fork of Macaron Session for go-chi. It can use many session providers, including memory, file, Redis, Memcache, PostgreSQL, MySQL, Couchbase, Ledis and Nodb.

Installation

go get gitea.com/go-chi/session

Credits

This package is a modified version of go-macaron/session.

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.