Skip to content

Commit

Permalink
Fix #993 undefined variable when resetting password.
Browse files Browse the repository at this point in the history
I think this fixes #993 but it might not be complete since afaik this
should only affect crowdmap.
  • Loading branch information
rjmackay committed Jan 23, 2013
1 parent 30632ab commit 0b9e1fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function index($user_id = 0)
// Existing User??
if ($user->loaded)
{

$email_sent = FALSE;
// Determine which reset method to use. The options are to use the RiverID server
// or to use the normal method which just resets the password locally.
if (Kohana::config('riverid.enable') == TRUE AND ! empty($user->riverid))
Expand All @@ -315,7 +315,7 @@ public function index($user_id = 0)

$riverid = new RiverID;
$riverid->email = $post->resetemail;
$riverid->requestpassword($message);
$email_sent = $riverid->requestpassword($message);
}
else
{
Expand Down

0 comments on commit 0b9e1fb

Please sign in to comment.