diff --git a/model/Login.php b/model/Login.php index f2c1daa5..5a28b5a2 100644 --- a/model/Login.php +++ b/model/Login.php @@ -40,7 +40,13 @@ class Login { } // try and be near constant time regardless of whether the db user exists or not - $x = pacrypt('abc', 'def'); + try { + $x = pacrypt('abc', 'def'); + } + catch(\Exception $e) { + error_log("Error trying to call pacrypt()"); + error_log($e); + } return hash_equals('not', 'comparable'); }