1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-18 09:15:49 +00:00
gitea/routers
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>
2021-12-20 22:12:26 +08:00
..
api/v1 Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
common Update chi/middleware to chi/v5/middleware (#17888) 2021-12-02 21:58:08 +01:00
install Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
private Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
utils A better go code formatter, and now make fmt can run in Windows (#17684) 2021-11-17 20:34:35 +08:00
web Reset Session ID on login (#18018) 2021-12-20 22:12:26 +08:00
init.go Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00