From 1f6b832a67f6e4b1865fbe1ec6ea9b0babf7ead5 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Mon, 20 Jun 2011 18:54:56 -0400 Subject: Fixed to use Lithium's new Password class --- models/User.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models') 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); -- cgit v1.2.3