Commit 2de5c58f authored by Soldatoff's avatar Soldatoff

поправил работу авторизации

parent e051d79c
......@@ -33,12 +33,12 @@ class UserHelper extends CI_Model
$pass_key = $this->config->item('pass');
if (isset($pass_key['key_1']) && isset($pass_key['key_2']) && isset($pass_key['key_3'])) {
return md5($pass_key['key_2'].$password.$pass_key['key_3'].$pass_key['key_1']);
} else {
return md5($password.'56uyfgh');
}
} else {
// if (isset($pass_key['key_1']) && isset($pass_key['key_2']) && isset($pass_key['key_3'])) {
// return md5($pass_key['key_2'].$password.$pass_key['key_3'].$pass_key['key_1']);
// } else {
// return md5($password.'123');
// }
// } else {
return md5($password.'56uyfgh');
}
}
......
......@@ -189,7 +189,7 @@ class User extends CI_Model {
'login' => $data['login'],
'type' => $data['type'],
'email' => $data['email'],
'password' => $this->userHelper->hashPassword($data['password']),
'password' => $data['password'],
'firstname' => $data['firstname'],
'middlename' => $data['middlename'],
'lastname' => $data['lastname'],
......
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