Commit 42f3ec38 authored by Patrick Barroca's avatar Patrick Barroca 😁
Browse files

pass hash plugged in cosmogramme auth

parent 5971e6fa
......@@ -37,7 +37,8 @@ function cosmo_auth($user, $passe, $cfg) {
if ($user == getVariable('catalog_login') && $passe == getVariable('catalog_pwd'))
return 'catalogueur';
if (($bokeh_user = Class_Users::findFirstBy(['login' => $user, 'password' => $passe]))
if (($bokeh_user = Class_Users::findFirstBy(['login' => $user]))
&& $bokeh_user->verifyPassword($passe)
&& $bokeh_user->isSuperAdmin())
return 'admin_systeme';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment