Browse Source

updated UserModel to get work with beta.4

v3-dev
REJack 6 years ago
parent
commit
c5f71d587c
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
  1. 2
      app/Models/Aauth/UserModel.php

2
app/Models/Aauth/UserModel.php

@ -137,7 +137,7 @@ class UserModel extends Model
* *
* @return boolean * @return boolean
*/ */
public function update($id = null, $data = null) public function update($id = null, $data = null): bool
{ {
$this->validationRules['email'] = 'if_exist|valid_email|is_unique[' . $this->table . '.email,id,{id}]'; $this->validationRules['email'] = 'if_exist|valid_email|is_unique[' . $this->table . '.email,id,{id}]';
$this->validationRules['password'] = 'if_exist|min_length[' . $this->config->passwordMin . ']|max_length[' . $this->config->passwordMax . ']'; $this->validationRules['password'] = 'if_exist|min_length[' . $this->config->passwordMin . ']|max_length[' . $this->config->passwordMax . ']';

Loading…
Cancel
Save