You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/auth
Lunny Xiao c03b1e2854
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>
11 months ago
..
source Use general token signing secret (#29205) (#29325) 1 year ago
auth.go Fix tarball/zipball download bug (#29342) (#29352) 1 year ago
auth_test.go Fix attachment download bug (#27486) (#27571) 1 year ago
basic.go Unify two factor check (#27915) (#27929) 1 year ago
group.go Remove `Named` interface (#26913) 1 year ago
httpsign.go Remove `Named` interface (#26913) 1 year ago
interface.go Reduce usage of `db.DefaultContext` (#27073) 1 year ago
oauth2.go Fix tarball/zipball download bug (#29342) (#29352) 1 year ago
reverseproxy.go Fix attachment download bug (#27486) (#27571) 1 year ago
session.go Fix the bug that user may logout if GetUserByID return unknow error (#29964) 11 months ago
signin.go Reduce usage of `db.DefaultContext` (#27073) 1 year ago
source.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sspi.go Fix SSPI user creation (#28948) (#29323) 1 year ago
sspiauth_posix.go Make SSPI auth mockable (#27036) 1 year ago
sspiauth_windows.go Make SSPI auth mockable (#27036) 1 year ago
sync.go Implement FSFE REUSE for golang files (#21840) 2 years ago