File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ export function initAdminCommon() {
10
10
}
11
11
12
12
// check whether appUrl(ROOT_URL) is correct, if not, show an error message
13
- // only admin pages need this check because most templates are using relative URLs now
14
13
checkAppUrl ( ) ;
15
14
16
15
// New user
Original file line number Diff line number Diff line change @@ -373,5 +373,5 @@ export function checkAppUrl() {
373
373
return ;
374
374
}
375
375
showGlobalErrorMessage ( `Your ROOT_URL in app.ini is "${ appUrl } ", it's unlikely matching the site you are visiting.
376
- Mismatched ROOT_URL config causes wrong URL links for web UI/mail content/webhook notification.` ) ;
376
+ Mismatched ROOT_URL config causes wrong URL links for web UI/mail content/webhook notification/OAuth2 sign-in .` ) ;
377
377
}
Original file line number Diff line number Diff line change 1
1
import $ from 'jquery' ;
2
+ import { checkAppUrl } from './common-global.js' ;
2
3
3
4
export function initUserAuthOauth2 ( ) {
4
5
const outer = document . getElementById ( 'oauth2-login-navigator' ) ;
5
6
if ( ! outer ) return ;
6
7
const inner = document . getElementById ( 'oauth2-login-navigator-inner' ) ;
7
8
9
+ checkAppUrl ( ) ;
10
+
8
11
for ( const link of outer . querySelectorAll ( '.oauth-login-link' ) ) {
9
12
link . addEventListener ( 'click' , ( ) => {
10
13
inner . classList . add ( 'gt-invisible' ) ;
You can’t perform that action at this time.
0 commit comments