From 00c0914f81bd3e0ba1d964e7138e7603a0de4c56 Mon Sep 17 00:00:00 2001 From: REJack Date: Mon, 11 Feb 2019 12:52:02 +0100 Subject: [PATCH] updated UserModel --- app/Models/Aauth/UserModel.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/Models/Aauth/UserModel.php b/app/Models/Aauth/UserModel.php index 2df1dfd..e656f17 100644 --- a/app/Models/Aauth/UserModel.php +++ b/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 *