From c5f71d587c452863182c6f7da61c3076f766c716 Mon Sep 17 00:00:00 2001 From: REJack Date: Thu, 22 Aug 2019 08:30:27 +0200 Subject: [PATCH] updated UserModel to get work with beta.4 --- app/Models/Aauth/UserModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Aauth/UserModel.php b/app/Models/Aauth/UserModel.php index 84aae06..3acf6e6 100644 --- a/app/Models/Aauth/UserModel.php +++ b/app/Models/Aauth/UserModel.php @@ -137,7 +137,7 @@ class UserModel extends Model * * @return boolean */ - public function update($id = null, $data = null) + public function update($id = null, $data = null): bool { $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 . ']';