From 01cb2f0517070dd867cd9ea23812965a8a621499 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Mon, 20 Jun 2011 18:59:48 -0400 Subject: Should be $input not $data (fixed typo) --- controllers/UsersController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controllers') diff --git a/controllers/UsersController.php b/controllers/UsersController.php index 844e6f9..c168066 100644 --- a/controllers/UsersController.php +++ b/controllers/UsersController.php @@ -352,13 +352,13 @@ class UsersController extends \lithium\action\Controller { { //Get the user from auth $user = Auth::check('default'); - if(!empty($user) && ($data['newpass'] == $data['confirm'])) + if(!empty($user) && isset($input['newpass'])) { //find the user by their ID $user = User::find($user['_id']); //Set the newpassword, this triggers the hash function in ->save() - $user->newpass = $data['newpass']; + $user->newpass = $input['newpass']; //Save the data if ($user->save(null, array('validate' => false))) { -- cgit v1.2.3