Commit b8ff2cc5 by Alexander Makarov

Added authkey generation

parent c5e9d84c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment