mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed saml problems
This commit is contained in:
parent
b98056b65a
commit
35a5d2a5de
@ -288,14 +288,14 @@ if (! isset ($config['id_user'])) {
|
|||||||
$nick_in_db = $_SESSION["prepared_login_da"]['id_user'];
|
$nick_in_db = $_SESSION["prepared_login_da"]['id_user'];
|
||||||
$expired_pass = false;
|
$expired_pass = false;
|
||||||
}
|
}
|
||||||
else if (($config['auth'] == 'saml') && $login_button_saml) {
|
else if (($config['auth'] == 'saml') && $login_button_saml && !is_user_admin($nick)) {
|
||||||
if (is_user_admin($nick)) {
|
|
||||||
$nick_in_db = $nick;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
include_once(ENTERPRISE_DIR . "/include/auth/saml.php");
|
include_once(ENTERPRISE_DIR . "/include/auth/saml.php");
|
||||||
$saml_user_id = saml_process_user_login();
|
$saml_user_id = saml_process_user_login();
|
||||||
$nick_in_db = $saml_user_id;
|
$nick_in_db = $saml_user_id;
|
||||||
|
if (!$nick_in_db) {
|
||||||
|
require_once('/opt/simplesamlphp/lib/_autoload.php');
|
||||||
|
$as = new SimpleSAML_Auth_Simple('example-userpass');
|
||||||
|
$as->logout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user