Commit 0c50efed authored by Vitaly Lipatov's avatar Vitaly Lipatov

add TODO

parent 38023be8
...@@ -171,6 +171,7 @@ class User extends CI_Model { ...@@ -171,6 +171,7 @@ class User extends CI_Model {
} }
function editUser($data) { function editUser($data) {
// TODO: дублирование проверки (см. addUser)
if (!$this->checkEmail($data['email'], $data['id_user'])) { if (!$this->checkEmail($data['email'], $data['id_user'])) {
return array('message' => 'Email не уникален'); return array('message' => 'Email не уникален');
} }
...@@ -178,6 +179,7 @@ class User extends CI_Model { ...@@ -178,6 +179,7 @@ class User extends CI_Model {
return array('message' => 'Логин не уникален'); return array('message' => 'Логин не уникален');
} }
// TODO: странная проверка
if ($data['password'] != '******') { if ($data['password'] != '******') {
$data['password'] = $this->userHelper->hashPassword($this->input->post('password')); $data['password'] = $this->userHelper->hashPassword($this->input->post('password'));
} }
......
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