Commit 29c593d5 by resurtm

Fix CS issues.

parent 02594d72
......@@ -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);
}
}
......
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