|
|
@@ -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);
|