0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 10:54:45 +01:00
gitea/services
Lunny Xiao 82db9a2ba7
Fix the bug that user may logout if he switch pages too fast (#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>
2024-03-21 08:48:08 +00:00
..
actions Cancel previous runs of the same PR automatically (#29961) 2024-03-21 15:01:35 +08:00
agit A small refactor for agit implementation (#29614) 2024-03-06 05:52:48 +00:00
asymkey Fix missing error check of bufio.Scanner (#29882) 2024-03-19 02:20:36 +00:00
attachment Add support for API blob upload of release attachments (#29507) 2024-03-02 17:02:01 +00:00
auth Fix the bug that user may logout if he switch pages too fast (#29962) 2024-03-21 08:48:08 +00:00
automerge Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
context Remove AddParamIfExist(AddParam) (#29841) 2024-03-16 12:07:56 +00:00
contexttest Make "/user/login" page redirect if the current user has signed in (#29583) 2024-03-05 02:12:03 +00:00
convert Fix possible NPE in ToPullReviewList (#29759) 2024-03-13 19:46:15 +00:00
cron Move some asymkey functions to service layer (#28894) 2024-03-04 08:57:39 +00:00
doctor Fix missing error check of bufio.Scanner (#29882) 2024-03-19 02:20:36 +00:00
externalaccount Revert "Support SAML authentication (#25165)" (#29358) 2024-02-24 12:18:49 +08:00
feed
forms Add a warning for disallowed email domains (#29658) 2024-03-11 06:07:36 +00:00
gitdiff Fix incorrect diff expander for deletion of last lines in a file (#29501) 2024-03-01 16:12:21 +00:00
indexer
issue Notify reviewers added via CODEOWNERS (#29842) 2024-03-19 05:28:43 +00:00
lfs Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
mailer Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-13 10:34:58 +00:00
markup Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
migrations remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
mirror Use repo object format name instead of detecting from git repository (#29702) 2024-03-10 22:30:36 +01:00
notify
org
packages remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
pull Notify reviewers added via CODEOWNERS (#29842) 2024-03-19 05:28:43 +00:00
release Use repo object format name instead of detecting from git repository (#29702) 2024-03-10 22:30:36 +01:00
repository Cancel previous runs of the same PR automatically (#29961) 2024-03-21 15:01:35 +08:00
secrets Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
task
uinotification
user Skip email domain check when admins edit user emails (#29609) 2024-03-05 16:51:56 +00:00
webhook Upgrade Go 1.22 and upgrade dependency (#29869) 2024-03-17 15:40:05 +00:00
wiki Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-08 15:30:10 +08:00