Skip to content

Commit 5908113

Browse files
committed
carStatus: fix key authentication
1 parent 0bd3e81 commit 5908113

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/login/loginCheck.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
if(defined("ALLOW_KEY_AUTHENTICATION") && ALLOW_KEY_AUTHENTICATION === true){
1717
require_once __DIR__."/../DatabaseConnection.php";
1818
if(isset($_GET['key']) && is_string($_GET['key'])){
19-
$keys = DatabaseConnection::getInstance()->query("SELECT authKey FROM authKeys");
19+
$keys = DatabaseConnection::getInstance()->query("SELECT authkey FROM authKeys");
2020
foreach($keys as $key){
21-
if(hash_equals($key["authKey"], $_GET['key'])){
21+
if(hash_equals($key["authkey"], $_GET['key'])){
2222
return;
2323
}
2424
}

0 commit comments

Comments
 (0)