Browse Source

Fix CS issues.

tags/2.0.0-beta
resurtm 12 years ago
parent
commit
29c593d526
  1. 6
      apps/advanced/common/models/User.php

6
apps/advanced/common/models/User.php

@ -101,9 +101,9 @@ class User extends ActiveRecord implements Identity
public function beforeSave($insert)
{
if(parent::beforeSave($insert)) {
if($this->isNewRecord) {
if(!empty($this->password)) {
if (parent::beforeSave($insert)) {
if ($this->isNewRecord) {
if (!empty($this->password)) {
$this->password_hash = SecurityHelper::generatePasswordHash($this->password);
}
}

Loading…
Cancel
Save