diff options
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); |