1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 12:59:11 -05:00
forgejo/routers/web/user
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
..
setting Add support for ssh commit signing (#17743) 2021-12-19 00:37:18 -05:00
auth.go Reset Session ID on login (#18018) 2021-12-20 22:12:26 +08:00
auth_openid.go Reset Session ID on login (#18018) 2021-12-20 22:12:26 +08:00
avatar.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
home.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
home_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
notification.go Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
oauth.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
oauth_test.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
profile.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
task.go Correctly handle failed migrations (#17575) 2021-11-13 19:28:50 +08:00