diff options
author | Michael Francis <edude03@gmail.com> | 2011-06-20 18:54:56 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-06-20 18:54:56 -0400 |
commit | 1f6b832a67f6e4b1865fbe1ec6ea9b0babf7ead5 (patch) | |
tree | 43d5ca007b62cc75df131bfcd7ebfd3dc5c5fdcd /models/User.php | |
parent | 6ce5cd79202821ad090c452e7f800eed5936d4ba (diff) | |
download | otakuhub-1f6b832a67f6e4b1865fbe1ec6ea9b0babf7ead5.tar.xz |
Fixed to use Lithium's new Password class
Diffstat (limited to 'models/User.php')
-rw-r--r-- | models/User.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/User.php b/models/User.php index 20c102a..1c1fe64 100644 --- a/models/User.php +++ b/models/User.php @@ -6,6 +6,7 @@ use \MongoDate; use \lithium\util\String; use \lithium\util\Validator; use \App\Libraries\openID\LightOpenID; +use \lithium\security\Password; class User extends \lithium\data\Model { //To bypass mongo bug @@ -332,7 +333,7 @@ class User extends \lithium\data\Model { if(!empty($entity->newpass) || !$entity->exists()) { //Generate Salt for the user. - $salt = String::genSalt('bf', 6); + $salt = Password::salt('bf', 6); //Hash their password. $data['password'] = String::hashPassword($entity->newpass, $salt); |