summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-06-20 18:54:56 -0400
committerMichael Francis <edude03@gmail.com>2011-06-20 18:54:56 -0400
commit1f6b832a67f6e4b1865fbe1ec6ea9b0babf7ead5 (patch)
tree43d5ca007b62cc75df131bfcd7ebfd3dc5c5fdcd /models
parent6ce5cd79202821ad090c452e7f800eed5936d4ba (diff)
downloadotakuhub-1f6b832a67f6e4b1865fbe1ec6ea9b0babf7ead5.tar.xz
Fixed to use Lithium's new Password class
Diffstat (limited to 'models')
-rw-r--r--models/User.php3
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);