File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ export function initAdminCommon() {
1010 }
1111
1212 // 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
1413 checkAppUrl ( ) ;
1514
1615 // New user
Original file line number Diff line number Diff line change @@ -461,5 +461,5 @@ export function checkAppUrl() {
461461 return ;
462462 }
463463 showGlobalErrorMessage ( `Your ROOT_URL in app.ini is "${ appUrl } ", it's unlikely matching the site you are visiting.
464- Mismatched ROOT_URL config causes wrong URL links for web UI/mail content/webhook notification.` ) ;
464+ Mismatched ROOT_URL config causes wrong URL links for web UI/mail content/webhook notification/OAuth2 sign-in .` ) ;
465465}
Original file line number Diff line number Diff line change 11import $ from 'jquery' ;
2+ import { checkAppUrl } from './common-global.js' ;
23
34export function initUserAuthOauth2 ( ) {
45 const outer = document . getElementById ( 'oauth2-login-navigator' ) ;
56 if ( ! outer ) return ;
67 const inner = document . getElementById ( 'oauth2-login-navigator-inner' ) ;
78
9+ checkAppUrl ( ) ;
10+
811 for ( const link of outer . querySelectorAll ( '.oauth-login-link' ) ) {
912 link . addEventListener ( 'click' , ( ) => {
1013 inner . classList . add ( 'gt-invisible' ) ;
You can’t perform that action at this time.
0 commit comments