summaryrefslogtreecommitdiffstats
path: root/controllers/UsersController.php
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-06-20 18:59:48 -0400
committerMichael Francis <edude03@gmail.com>2011-06-20 18:59:48 -0400
commit01cb2f0517070dd867cd9ea23812965a8a621499 (patch)
tree9459d6d477e0a629d8325980a10e4cad249693f0 /controllers/UsersController.php
parent6c84c1a29b57010b3f6b16395663bf6bbf4d268b (diff)
downloadotakuhub-01cb2f0517070dd867cd9ea23812965a8a621499.tar.xz
Should be $input not $data (fixed typo)
Diffstat (limited to 'controllers/UsersController.php')
-rw-r--r--controllers/UsersController.php4
1 files changed, 2 insertions, 2 deletions
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))) {