Browse Source

updated UserModel

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

4
app/Models/Aauth/UserModel.php

@ -91,9 +91,9 @@ class UserModel extends Model
$this->tempUseSoftDeletes = $this->config->dbSoftDeleteUsers; $this->tempUseSoftDeletes = $this->config->dbSoftDeleteUsers;
$this->tempReturnType = $this->config->dbReturnType; $this->tempReturnType = $this->config->dbReturnType;
$this->validationRules['email'] = 'required|valid_email|is_unique[' . $this->table . '.email]'; $this->validationRules['email'] = 'required|valid_email|is_unique[' . $this->table . '.email,id,{id}]';
$this->validationRules['password'] = 'required|min_length[' . $this->config->passwordMin . ']|max_length[' . $this->config->passwordMax . ']'; $this->validationRules['password'] = 'required|min_length[' . $this->config->passwordMin . ']|max_length[' . $this->config->passwordMax . ']';
$this->validationRules['username'] = 'if_exist|is_unique[' . $this->table . '.username]|regex_match[/' . $this->config->userRegexPattern . '/]'; $this->validationRules['username'] = 'if_exist|is_unique[' . $this->table . '.username,id,{id}]|regex_match[/' . $this->config->userRegexPattern . '/]';
$this->validationMessages = [ $this->validationMessages = [
'email' => [ 'email' => [

Loading…
Cancel
Save