|
|
|
@ -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 . '/]'; |
|
|
|
|