This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/services
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
..
agit Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
asymkey Add missing X-Total-Count and fix some related bugs (#17968) 2021-12-15 13:39:34 +08:00
attachment Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
auth Reset Session ID on login (#18018) 2021-12-20 22:12:26 +08:00
comments Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
cron Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
externalaccount Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
forms Abort merge if head has been updated before pressing merge (#18032) 2021-12-20 08:32:54 +08:00
gitdiff Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
issue Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
lfs Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
mailer Add missing X-Total-Count and fix some related bugs (#17968) 2021-12-15 13:39:34 +08:00
migrations Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
mirror Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
org Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
pull Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
release Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
repository Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
task Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
user Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
webhook Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
wiki Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00