Skip to content

Commit

Permalink
Merge pull request #2256 from michael-e/fix-password-reset
Browse files Browse the repository at this point in the history
Prevent fatal error on password reset. Fixes #2255
  • Loading branch information
brendo committed Nov 14, 2014
2 parents 5a14cbf + 830fe42 commit 11245dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symphony/lib/core/class.symphony.php
Expand Up @@ -503,7 +503,7 @@ public static function loginFromToken($token)
$token
));

self::Database()->delete('tbl_forgotpass', sprintf(" `token` = %s ", $token));
self::Database()->delete('tbl_forgotpass', sprintf(" `token` = '%s' ", $token));
} else {
$row = self::Database()->fetchRow(0, sprintf(
"SELECT `id`, `username`, `password`
Expand Down

0 comments on commit 11245dc

Please sign in to comment.