diff --git a/apps/advanced/common/models/User.php b/apps/advanced/common/models/User.php index 9b8198ea621..25be085c041 100644 --- a/apps/advanced/common/models/User.php +++ b/apps/advanced/common/models/User.php @@ -106,6 +106,7 @@ public function beforeSave($insert) if (!empty($this->password)) { $this->password_hash = SecurityHelper::generatePasswordHash($this->password); } + $this->auth_key = SecurityHelper::generateRandomKey(); } return true; }