From b8ff2cc569c2ccecf655f337dc19320bc3bcb8cf Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 18 Jul 2013 02:08:19 +0400 Subject: [PATCH] Added authkey generation --- apps/advanced/common/models/User.php | 1 + 1 file changed, 1 insertion(+) 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; }