Change generateToken to generateCookieToken
This commit is contained in:
1 parent
1a2ee0c176
commit
ff2afb4441
1 file changed
+1
-1
+1
-1
@@ -37,7 +37,7 @@ $result = $api->dbCommand($command, true, true, $args);
|
||||
// Check Result
|
||||
if ($result && password_verify($password, $result["password"])) {
|
||||
// Login successful. Generate Auth Token
|
||||
$token = $api->generateToken($username);
|
||||
$token = $api->generateCookieToken($username);
|
||||
|
||||
// Set cookies
|
||||
setcookie("auth_token", $token, time() + 86400, "/");
|
||||
|
||||
Reference in new issue
Block a user