Skip to content

Commit 15cedd2

Browse files
author
Kristan Kenney
committed
Fix system theme enforcement on login
1 parent 8017b1b commit 15cedd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/login/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ function authenticate_user($user, $password, $twofa = ''){
207207

208208
// Set active user theme on login
209209
$_SESSION['userTheme'] = $data[$user]['THEME'];
210+
if ($_SESSION['POLICY_USER_CHANGE_THEME'] !== 'yes') {
211+
unset($_SESSION['userTheme']);
212+
}
213+
210214
if (!empty($data[$user]['PREF_UI_SORT'])) {
211215
$_SESSION['userSortOrder'] = $data[$user]['PREF_UI_SORT'];
212216
} else {

0 commit comments

Comments
 (0)