Browse Source

updated UserModel

v3-dev
REJack 6 years ago
parent
commit
00c0914f81
No known key found for this signature in database
GPG Key ID: 4A44B48700429F46
  1. 12
      app/Models/Aauth/UserModel.php

12
app/Models/Aauth/UserModel.php

@ -121,18 +121,6 @@ class UserModel extends Model
}
}
/**
* Update
*/
public function update($id = null, $data = null)
{
$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['username'] = 'if_exist|is_unique[' . $this->table . '.username,id,{id}]|regex_match[/' . $this->config->userRegexPattern . '/]';
return parent::update($id, $data);
}
/**
* Update last login by User ID
*

Loading…
Cancel
Save