Commit 2de5c58f authored by Soldatoff's avatar Soldatoff

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

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