[Improvement] Redirect to login page if user doesn't login
Why are the changes needed?
Close #xxx.
Brief change log
https://github.com/user-attachments/assets/9e824467-de8b-41ff-8b4d-e225a2244054
How was this patch tested?
-
[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
-
[ ] Add screenshots for manual tests if appropriate
-
[ ] Run test locally before making a pull request
Documentation
- Does this pull request introduce a new feature? (yes / no)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
Thanks for the work!
When I tested it in my local environment, I got some unexpected errors: When I try to open http://127.0.0.1:1630/overview page without logging, it can redirect to the login page, but after I fill in the username and password and click sign in, it cannot redirect to the overview page.
logging
It may be a bug, I will fix it in recent days.
Thanks for this contribution.
It really helps much.
I used to meet this issue
When backend restarted, refresh would encounter this plenty of errors. Will they disappear after this PR merged? @chouchouji
+1
Does this have anything to do with it #3340 cc @huyuanfeng2018
Does this have anything to do with it #3340 cc @huyuanfeng2018
I'm not sure, I wasn't focused here
Does this have anything to do with it #3340 cc @huyuanfeng2018
This PR does not conflict with the current PR. The two PRs focus on different points respectively and solve different problems. @czy006