fix: If the custom auth is not required, throw the user to the usual login if the custom auth login failed

pull/1617/merge
Iglocska 2016-10-20 16:36:49 +02:00
parent 0695efe81b
commit ef9afedcf2
1 changed files with 3 additions and 1 deletions

View File

@ -643,7 +643,9 @@ class AppController extends Controller {
'change' => null,
);
$this->Log->save($log);
$this->__preAuthException($authName . ' authentication failed. Contact your MISP support for additional information at: ' . Configure::read('MISP.contact'));
if (Configure::read('CustomAuth_required')) {
$this->__preAuthException($authName . ' authentication failed. Contact your MISP support for additional information at: ' . Configure::read('MISP.contact'));
}
}
}
}