From 33a2beb47506fa67bceb76fbc2d9742e85ad0605 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sun, 10 Jul 2011 00:37:03 -0400 Subject: Remove mongo schema + change salt -> pepper --- models/User.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'models') diff --git a/models/User.php b/models/User.php index bf9eec2..a1c8f8d 100644 --- a/models/User.php +++ b/models/User.php @@ -10,12 +10,12 @@ use \lithium\security\Password; class User extends \lithium\data\Model { //To bypass mongo bug - protected $_meta = array('key' => '_id'); - protected $_schema = array('_id' => array('type' => 'id'), + //protected $_meta = array('key' => '_id'); + /*protected $_schema = array('_id' => array('type' => 'id'), 'feed' => array('type'=>'string', 'array' => true), 'animelist' => array('type' => 'object', 'array' => true), 'mangalist' => array('type' => 'object', 'array' => true) - ); + );*/ public static function __init() { @@ -338,7 +338,7 @@ class User extends \lithium\data\Model { //Hash their password. $data['password'] = Password::hash($entity->newpass, $salt); - $data['salt'] = $salt; + $data['pepper'] = $salt; unset($entity->newpass); } //If the entity doesn't exist or if the password password has been modified -- cgit v1.2.3