Browse Source

updated UserModel

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

4
application/Models/Aauth/UserModel.php

@ -85,7 +85,7 @@ class UserModel extends Model
/**
* Constructor
*/
public function __construct($db = NULL, $validation = NULL, $config = NULL)
public function __construct($db = null, $validation = null, $config = null)
{
parent::__construct();
@ -120,6 +120,8 @@ class UserModel extends Model
],
];
print_r($this->config);
if ($this->config->loginUseUsername)
{
$this->validationRules['username'] = 'required|if_exist|is_unique[' . $this->table . '.username,id,{$row->id}]|min_length[3]|regex_match[/' . $this->config->userRegexPattern . '/]';

Loading…
Cancel
Save