Skip to content

Commit

Permalink
Added authkey generation
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Jul 17, 2013
1 parent c5e9d84 commit b8ff2cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/advanced/common/models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ public function beforeSave($insert)
if (!empty($this->password)) {
$this->password_hash = SecurityHelper::generatePasswordHash($this->password);
}
$this->auth_key = SecurityHelper::generateRandomKey();
}
return true;
}
Expand Down

0 comments on commit b8ff2cc

Please sign in to comment.