0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-20 14:04:24 +01:00
gitea/services/auth/source
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
..
db Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
ldap Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
oauth2 Reset Session ID on login (#18018) 2021-12-20 22:12:26 +08:00
pam Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
smtp Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
sspi Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00