Merge pull request #6518 from seclution/patch-2

fix: typo in default_template
This commit is contained in:
FreddleSpl0it 2025-05-12 13:08:07 +02:00 committed by GitHub
commit 1bcab9a9a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -669,8 +669,8 @@ function ldap_mbox_login($user, $pass, $extra = null){
// check if matching attribute exist // check if matching attribute exist
if (empty($iam_settings['mappers']) || !$user_template || $mapper_key === false) { if (empty($iam_settings['mappers']) || !$user_template || $mapper_key === false) {
if (!empty($iam_settings['default_tempalte'])) { if (!empty($iam_settings['default_template'])) {
$mbox_template = $iam_settings['default_tempalte']; $mbox_template = $iam_settings['default_template'];
} else { } else {
$_SESSION['return'][] = array( $_SESSION['return'][] = array(
'type' => 'danger', 'type' => 'danger',