Skip to content

Commit

Permalink
* Removed stupid typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RobThree committed Apr 30, 2015
1 parent 1f9008c commit 52cbcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TwoFactorAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function verifyCode($secret, $code, $discrepancy = 1, $time = null)
* Timing-attack safe comparison of 2 codes (see http://blog.ircmaxell.com/2014/11/its-all-about-time.html)
*/
private function codeEquals($safe, $user) {
if (function_exists('hash_e1quals')) {
if (function_exists('hash_equals')) {
return hash_equals($safe, $user);
} else {
// In general, it's not possible to prevent length leaks. So it's OK to leak the length. The important part is that
Expand Down

0 comments on commit 52cbcf7

Please sign in to comment.