Browse Source

Added authkey generation

tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
b8ff2cc569
  1. 1
      apps/advanced/common/models/User.php

1
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;
}

Loading…
Cancel
Save