mirror of https://github.com/MISP/MISP
fix: [external auth] fixed auth logging generating notices, fixes #9445
parent
ecc4087b08
commit
cdfc12008c
|
@ -1204,12 +1204,11 @@ class AppController extends Controller
|
||||||
null);
|
null);
|
||||||
$this->__preAuthException($authName . ' authentication failed. Contact your MISP support for additional information at: ' . Configure::read('MISP.contact'));
|
$this->__preAuthException($authName . ' authentication failed. Contact your MISP support for additional information at: ' . Configure::read('MISP.contact'));
|
||||||
}
|
}
|
||||||
$temp = $this->_checkExternalAuthUser($server[$headerNamespace . $header]);
|
$user = $this->_checkExternalAuthUser($server[$headerNamespace . $header]);
|
||||||
$user['User'] = $temp;
|
if ($user) {
|
||||||
if ($user['User']) {
|
$this->User->updateLoginTimes($user);
|
||||||
$this->User->updateLoginTimes($user['User']);
|
|
||||||
//$this->Session->renew();
|
//$this->Session->renew();
|
||||||
$this->Session->write(AuthComponent::$sessionKey, $user['User']);
|
$this->Session->write(AuthComponent::$sessionKey, $user);
|
||||||
if (Configure::read('MISP.log_auth')) {
|
if (Configure::read('MISP.log_auth')) {
|
||||||
$this->Log = ClassRegistry::init('Log');
|
$this->Log = ClassRegistry::init('Log');
|
||||||
$change = $this->User->UserLoginProfile->_getUserProfile();
|
$change = $this->User->UserLoginProfile->_getUserProfile();
|
||||||
|
@ -1219,7 +1218,7 @@ class AppController extends Controller
|
||||||
$user,
|
$user,
|
||||||
'auth',
|
'auth',
|
||||||
'User',
|
'User',
|
||||||
$user['User']['id'],
|
$user['id'],
|
||||||
'Successful authentication using ' . $authName . ' key',
|
'Successful authentication using ' . $authName . ' key',
|
||||||
json_encode($change));
|
json_encode($change));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue