From 89d53a7f492c3875b14cf1c259c8049ff3757b6a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Sep 2020 08:45:17 +0300 Subject: fix typo in previous --- classes/pref/prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/pref/prefs.php') diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 3b129c7e5..7b458fad7 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -1012,7 +1012,7 @@ class Pref_Prefs extends Handler_Protected { function otpqrcode() { $csrf_token_hash = clean($_REQUEST["csrf_token_hash"]); - if (sha1($_SESSION["csrf_token"] === $csrf_token_hash)) { + if (sha1($_SESSION["csrf_token"]) === $csrf_token_hash) { require_once "lib/phpqrcode/phpqrcode.php"; $sth = $this->pdo->prepare("SELECT login -- cgit v1.2.3