forgejo/web_src/js/features
Giteabot a50dfca667
Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) (#25972)
Backport #25947 by @wolfogre

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">

Co-authored-by: Jason Song <i@wolfogre.com>
(cherry picked from commit 037a3f0d8c)
2023-07-24 07:58:56 +02:00
..
admin Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) (#25972) 2023-07-24 07:58:56 +02:00
comp Update JS dependencies, remove space after emoji completion (#25266) (#25352) 2023-06-20 05:38:52 +00:00
captcha.js Add new captcha: cloudflare turnstile (#22369) 2023-02-05 15:29:03 +08:00
citation.js Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 2023-04-20 05:28:27 -04:00
clipboard.js Use clippie module to copy to clipboard (#23801) 2023-04-02 17:25:36 +08:00
codeeditor.js Always pass 6-digit hex color to monaco (#25780) (#25782) 2023-07-09 13:06:13 +02:00
colorpicker.js JS refactors (#22227) 2022-12-24 00:03:11 +08:00
common-global.js Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) (#25972) 2023-07-24 07:58:56 +02:00
common-issue-list.js Improve "goto issue by number" button (#24577) 2023-05-10 15:50:58 +00:00
common-issue-list.test.js Improve "goto issue by number" button (#24577) 2023-05-10 15:50:58 +00:00
common-organization.js Fix Org edit page bugs: renaming detection, maxlength (#24161) 2023-04-17 11:35:57 -04:00
contextpopup.js Fix issue and commit status popup padding (#25254) (#25288) 2023-06-15 16:52:23 +02:00
copycontent.js Add two eslint plugins (#24776) 2023-05-18 09:14:31 +08:00
dropzone.js JS refactors (#22227) 2022-12-24 00:03:11 +08:00
emoji.js JS refactors (#22227) 2022-12-24 00:03:11 +08:00
eventsource.sharedworker.js Fix the JS error "EventSource is not defined" caused by some non-standard browsers (#20584) 2022-08-03 22:58:27 +03:00
file-fold.js Scroll collapsed file into view (#23702) 2023-04-05 07:51:42 +08:00
heatmap.js Localize activity heatmap (except tooltip) (#24131) 2023-04-17 14:26:01 -04:00
imagediff.js Prevent duplicate image loading (#25675) (#25684) 2023-07-04 14:49:39 +00:00
install.js [BRANDING] Rebrand default config settings for new installs (#140) 2023-07-17 00:25:55 +02:00
notification.js Fix notification list bugs (#25781) (#25787) 2023-07-09 19:15:00 +00:00
org-team.js Add status indicator on main home screen for each repo (#24638) 2023-05-13 21:59:01 +00:00
pull-view-file.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-branch.js Display warning when user try to rename default branch (#24512) 2023-05-04 22:54:38 +00:00
repo-code.js Fix mobile navbar and misc cleanups (#25134) (#25169) 2023-06-11 09:50:39 +08:00
repo-code.test.js Ignore line anchor links with leading zeroes (#21728) 2022-11-11 18:22:36 +08:00
repo-commit.js Fix issue and commit status popup padding (#25254) (#25288) 2023-06-15 16:52:23 +02:00
repo-common.js Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 2023-04-20 05:28:27 -04:00
repo-diff-filetree.js JS refactors (#22227) 2022-12-24 00:03:11 +08:00
repo-diff.js Fix show more for image on diff page (#25672) (#25673) 2023-07-04 04:44:45 -04:00
repo-editor.js Add popup to hashed comments/pull requests/issues in file editing/adding preview tab (#24040) 2023-04-11 23:03:23 -04:00
repo-findfile.js Refactor branch/tag selector to Vue SFC (#23421) 2023-03-14 17:51:20 +08:00
repo-findfile.test.js Refactor branch/tag selector to Vue SFC (#23421) 2023-03-14 17:51:20 +08:00
repo-graph.js Refactor hiding-methods, remove jQuery show/hide, remove .hide class, remove inline style=display:none (#22950) 2023-02-19 12:06:14 +08:00
repo-home.js Sort repo topic labels by name (#24123) 2023-04-14 15:29:05 -04:00
repo-issue-content.js Clarify "text-align" CSS helpers, fix clone button padding (#25763) (#25764) 2023-07-10 00:19:24 +02:00
repo-issue-list.js Add the ability to pin Issues (#24406) 2023-05-25 15:17:19 +02:00
repo-issue-pr-form.js JS refactors (#22227) 2022-12-24 00:03:11 +08:00
repo-issue.js Fix label list divider (#25312) (#25372) 2023-06-19 18:14:31 +00:00
repo-legacy.js Improve and fix bugs surrounding reactions (#24760) 2023-05-28 01:34:18 +00:00
repo-migrate.js Make repo migration cancelable and fix various bugs (#24605) 2023-05-11 08:25:46 +00:00
repo-migration.js Refactor hiding-methods, remove jQuery show/hide, remove .hide class, remove inline style=display:none (#22950) 2023-02-19 12:06:14 +08:00
repo-projects.js Always pass 6-digit hex color to monaco (#25780) (#25782) 2023-07-09 13:06:13 +02:00
repo-release.js Update JS dependencies, add new eslint rules (#24597) 2023-05-09 02:35:49 +00:00
repo-settings.js Support for status check pattern (#24633) 2023-05-17 16:11:13 +08:00
repo-template.js Add status indicator on main home screen for each repo (#24638) 2023-05-13 21:59:01 +00:00
repo-unicode-escape.js Improve accessibility when (re-)viewing files (#24817) 2023-05-21 20:47:41 +00:00
repo-wiki.js Improve wiki sidebar and TOC (#25460) (#25477) 2023-06-24 10:16:15 +08:00
sshkey-helper.js Use explicit jQuery import, remove unused eslint globals (#18435) 2022-01-28 21:00:11 +00:00
stopwatch.js Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
tablesort.js JS refactors (#22227) 2022-12-24 00:03:11 +08:00
tribute.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 2023-04-03 18:06:57 +08:00
user-auth-webauthn.js Fix webauthn regression and improve code (#25113) 2023-06-07 19:20:18 +08:00
user-auth.js Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (#25947) (#25972) 2023-07-24 07:58:56 +02:00
user-settings.js Refactor hiding-methods, remove jQuery show/hide, remove .hide class, remove inline style=display:none (#22950) 2023-02-19 12:06:14 +08:00