Closed
Description
Description
I've noticed two buggy scenarios that may happen sometimes when I click on the Sign Out button:
- I'm redirected to the default (logged out) home page, but as soon as I click Sign In I'm automatically logged in, no username/password asked
- A red error message briefly appears at the top of the page, page refresh, I'm logged in again (no username/password form). Stack trace of the error:
error when doRequest TypeError: NetworkError when attempting to fetch resource. [index.js:74:2228](https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836)
Fm https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:74
si https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:74
ov https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:74
(Async: EventListener.handleEvent)
rv https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:74
<anonymous> https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:233
(Async: EventListener.handleEvent)
Wi https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:28
<anonymous> https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:233
<anonymous> https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:233
<anonymous> https://try.gitea.io/assets/js/index.js?v=1.22.0~rc1-10-gd11133b836:233
Browser: Firefox 125.0.2
Gitea Version
1.22.0+rc1-1-g7b8e418da
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/sryze/f13d87ee13691ba29f989c7e1f6510c8
Screenshots
Git Version
2.44.0
Operating System
No response
How are you running Gitea?
From command-line, built myself. I can reproduce it on try.gitea.io as well.
Database
SQLite