forgejo/web_src/js/features
Giteabot 037a3f0d8c
Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled () ()
Backport  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>
2023-07-19 04:35:16 +00:00
..
admin Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled () () 2023-07-19 04:35:16 +00:00
comp Update JS dependencies, remove space after emoji completion () () 2023-06-20 05:38:52 +00:00
captcha.js
citation.js
clipboard.js
codeeditor.js Always pass 6-digit hex color to monaco () () 2023-07-09 13:06:13 +02:00
colorpicker.js
common-global.js Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled () () 2023-07-19 04:35:16 +00:00
common-issue-list.js Improve "goto issue by number" button () 2023-05-10 15:50:58 +00:00
common-issue-list.test.js Improve "goto issue by number" button () 2023-05-10 15:50:58 +00:00
common-organization.js
contextpopup.js Fix issue and commit status popup padding () () 2023-06-15 16:52:23 +02:00
copycontent.js Add two eslint plugins () 2023-05-18 09:14:31 +08:00
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
heatmap.js
imagediff.js Prevent duplicate image loading () () 2023-07-04 14:49:39 +00:00
install.js
notification.js Fix notification list bugs () () 2023-07-09 19:15:00 +00:00
org-team.js Add status indicator on main home screen for each repo () 2023-05-13 21:59:01 +00:00
pull-view-file.js Improve accessibility when (re-)viewing files () 2023-05-21 20:47:41 +00:00
repo-branch.js Display warning when user try to rename default branch () 2023-05-04 22:54:38 +00:00
repo-code.js Fix mobile navbar and misc cleanups () () 2023-06-11 09:50:39 +08:00
repo-code.test.js
repo-commit.js Fix issue and commit status popup padding () () 2023-06-15 16:52:23 +02:00
repo-common.js
repo-diff-filetree.js
repo-diff.js Fix show more for image on diff page () () 2023-07-04 04:44:45 -04: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 () () 2023-07-10 00:19:24 +02:00
repo-issue-list.js Add the ability to pin Issues () 2023-05-25 15:17:19 +02:00
repo-issue-pr-form.js
repo-issue.js Fix label list divider () () 2023-06-19 18:14:31 +00:00
repo-legacy.js Improve and fix bugs surrounding reactions () 2023-05-28 01:34:18 +00:00
repo-migrate.js Make repo migration cancelable and fix various bugs () 2023-05-11 08:25:46 +00:00
repo-migration.js
repo-projects.js Always pass 6-digit hex color to monaco () () 2023-07-09 13:06:13 +02:00
repo-release.js Update JS dependencies, add new eslint rules () 2023-05-09 02:35:49 +00:00
repo-settings.js Support for status check pattern () 2023-05-17 16:11:13 +08:00
repo-template.js Add status indicator on main home screen for each repo () 2023-05-13 21:59:01 +00:00
repo-unicode-escape.js Improve accessibility when (re-)viewing files () 2023-05-21 20:47:41 +00:00
repo-wiki.js Improve wiki sidebar and TOC () () 2023-06-24 10:16:15 +08:00
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js Fix webauthn regression and improve code () 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 () () 2023-07-19 04:35:16 +00:00
user-settings.js