Skip to content
Snippets Groups Projects
Commit 42f3ec38 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

pass hash plugged in cosmogramme auth

parent 5971e6fa
Branches
Tags
2 merge requests!2431Stable,!2424Sandbox user password hash
Pipeline #3015 passed with stage
in 25 minutes and 11 seconds
......@@ -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';
}
......
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