diff --git a/apps/advanced/common/models/User.php b/apps/advanced/common/models/User.php index 9b8198e..25be085 100644 --- a/apps/advanced/common/models/User.php +++ b/apps/advanced/common/models/User.php @@ -106,6 +106,7 @@ class User extends ActiveRecord implements Identity if (!empty($this->password)) { $this->password_hash = SecurityHelper::generatePasswordHash($this->password); } + $this->auth_key = SecurityHelper::generateRandomKey(); } return true; }