Преглед изворни кода

Fix Login screen for oAuth and backend only

causefx пре 6 година
родитељ
комит
c4e016f81f
2 измењених фајлова са 6 додато и 1 уклоњено
  1. 5 0
      api/functions/organizr-functions.php
  2. 1 1
      api/pages/login.php

+ 5 - 0
api/functions/organizr-functions.php

@@ -1600,6 +1600,11 @@ function checkoAuth()
 	return ($GLOBALS['plexoAuth'] && $GLOBALS['authType'] !== 'internal') ? true : false;
 }
 
+function checkoAuthOnly()
+{
+	return ($GLOBALS['plexoAuth'] && $GLOBALS['authType'] == 'external') ? true : false;
+}
+
 function showoAuth()
 {
 	$buttons = '';

+ 1 - 1
api/pages/login.php

@@ -1,7 +1,7 @@
 <?php
 if (file_exists('config' . DIRECTORY_SEPARATOR . 'config.php')) {
 	$hideOrganizrLogin = (checkoAuth()) ? 'collapse' : 'collapse in';
-	$hideOrganizrLoginHeader = (checkoAuth()) ? '' : 'hidden';
+	$hideOrganizrLoginHeader = (checkoAuthOnly()) ? 'hidden' : '';
 	$pageLogin = '
 <script>
 if(activeInfo.settings.login.rememberMe){