0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-25 08:11:19 +01:00
gitea/web_src/js/features
Jason Song 6f1f3e6c08
Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947)
Since OAuth2 will callback the root URL, if the user starts signing in
from a wrong host, Gitea will return 500 because it cannot find the
session.

<details>
<summary>How to reproduce</summary>

<img width="901" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/2c2e255c-e13e-4a11-9be7-b226bee54920">

<img width="1014" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/b31cfcf6-a320-483d-9ce5-ba8562f065e1">

</details>


So show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is
enabled.

<img width="1015" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/99e80b17-c790-49a3-bbf2-2bd9396a7daa">
2023-07-18 22:14:30 +00:00
..
admin Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) 2023-07-18 22:14:30 +00:00
comp Add toasts to UI (#25449) 2023-06-27 02:45:24 +00:00
captcha.js
citation.js
clipboard.js
codeeditor.js Always pass 6-digit hex color to monaco (#25780) 2023-07-09 12:17:22 +02:00
colorpicker.js
common-global.js Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) 2023-07-18 22:14:30 +00:00
common-issue-list.js
common-issue-list.test.js
common-organization.js
contextpopup.js
copycontent.js
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
heatmap.js
imagediff.js Prevent duplicate image loading (#25675) 2023-07-04 14:43:02 +00:00
install.js
notification.js Fix notification list bugs (#25781) 2023-07-09 18:42:31 +00:00
org-team.js
pull-view-file.js Highlight viewed files differently in the PR filetree (#24956) 2023-06-25 08:46:30 +08:00
repo-branch.js
repo-code.js
repo-code.test.js
repo-commit.js
repo-common.js
repo-diff-filetree.js
repo-diff.js Fix show more for image on diff page (#25672) 2023-07-04 10:36:27 +02:00
repo-editor.js
repo-findfile.js
repo-findfile.test.js
repo-graph.js
repo-home.js
repo-issue-content.js Clarify "text-align" CSS helpers, fix clone button padding (#25763) 2023-07-08 11:53:56 +02:00
repo-issue-list.js Import sortablejs only once (#25936) 2023-07-17 18:06:37 +00:00
repo-issue-pr-form.js
repo-issue.js
repo-legacy.js
repo-migrate.js
repo-migration.js
repo-projects.js Import sortablejs only once (#25936) 2023-07-17 18:06:37 +00:00
repo-release.js
repo-settings.js
repo-template.js
repo-unicode-escape.js
repo-wiki.js Improve wiki sidebar and TOC (#25460) 2023-06-23 15:51:43 -04:00
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) 2023-07-18 22:14:30 +00:00
user-settings.js