|
@@ -74,7 +74,7 @@ discard block |
|
|
block discarded – undo |
|
74
|
74
|
) { |
|
75
|
75
|
// Not allowed page |
|
76
|
76
|
$session->set('system-error_code', ERR_NOT_ALLOWED); |
|
77
|
|
- include $SETTINGS['cpassman_dir'] . '/error.php'; |
|
|
77
|
+ include $SETTINGS['cpassman_dir'].'/error.php'; |
|
78
|
78
|
exit; |
|
79
|
79
|
} |
|
80
|
80
|
|
|
@@ -130,7 +130,7 @@ discard block |
|
|
block discarded – undo |
|
130
|
130
|
|
|
131
|
131
|
if ( |
|
132
|
132
|
is_array($dataReceived) && // check if the data is an array |
|
133
|
|
- array_diff_key(array_flip($requiredKeys), $dataReceived) === [] && // check if all required keys have a valuekeys are present |
|
|
133
|
+ array_diff_key(array_flip($requiredKeys), $dataReceived) === [] && // check if all required keys have a valuekeys are present |
|
134
|
134
|
count(array_filter($dataReceived)) === count($requiredKeys) && // check if all required |
|
135
|
135
|
in_array($dataReceived['action'], ['at_password_shown', 'at_password_copied'], true) && // only log these actions |
|
136
|
136
|
$session->get('user-id') === (int) filter_var($dataReceived['user_id'], FILTER_SANITIZE_NUMBER_INT) // only log actions of the current user |
Please login to merge, or discard this patch.