1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-26 09:09:36 -05:00
forgejo/services/auth
Lunny Xiao fccb34c389
Fix the bug that user may logout if GetUserByID return unknow error (#29964)
backport #29962

This PR fixed a bug when the user switching pages too fast, he will
logout automatically.

The reason is that when the error is context cancelled, the previous
code think user hasn't login then the session will be deleted. Now it
will return the errors but not think it's not login.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit c03b1e28544ee60c72f9dc7d9f362753bb3d778c)
2024-04-03 12:13:28 +02:00
..
source Revert "[TESTS] oauth2: make it possible to use an alternate http.Client" 2023-12-19 16:38:35 +01:00
auth.go Fix tarball/zipball download bug (#29342) (#29352) 2024-03-06 12:20:42 +08:00
auth_test.go Fix attachment download bug (#27486) (#27571) 2023-10-11 04:39:12 +02:00
basic.go [BRANDING] X-Forgejo-OTP can be used instead of X-Gitea-OTP 2023-11-13 14:01:40 +01:00
group.go Remove Named interface (#26913) 2023-09-05 15:58:30 +00:00
httpsign.go Remove Named interface (#26913) 2023-09-05 15:58:30 +00:00
interface.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
oauth2.go Fix tarball/zipball download bug (#29342) (#29352) 2024-03-06 12:20:42 +08:00
reverseproxy.go Fix attachment download bug (#27486) (#27571) 2023-10-11 04:39:12 +02:00
session.go Fix the bug that user may logout if GetUserByID return unknow error (#29964) 2024-04-03 12:13:28 +02:00
signin.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
source.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
sspi.go Fix SSPI user creation (#28948) (#29323) 2024-03-06 12:20:42 +08:00
sspiauth_posix.go Make SSPI auth mockable (#27036) 2023-09-17 23:32:56 +00:00
sspiauth_windows.go Make SSPI auth mockable (#27036) 2023-09-17 23:32:56 +00:00
sync.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00