1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-18 08:18:35 +00:00

Warn users when they try to use a non-root-url to sign in/up (#32272) (#32273)

This commit is contained in:
wxiaoguang
2024-10-17 09:01:44 +08:00
committed by GitHub
parent db7349bc0d
commit 7e0fd4c208
3 changed files with 16 additions and 2 deletions

View File

@@ -1,4 +1,9 @@
import {checkAppUrl} from './common-global.js';
import {checkAppUrl, checkAppUrlScheme} from './common-global.js';
export function initUserCheckAppUrl() {
if (!document.querySelector('.page-content.user.signin, .page-content.user.signup, .page-content.user.link-account')) return;
checkAppUrlScheme();
}
export function initUserAuthOauth2() {
const outer = document.getElementById('oauth2-login-navigator');