Add cookie token lifetime configuration and implement base64 encoding/decoding methods
This commit is contained in:
1 parent
bf552e87cc
commit
a1bbae383a
4 files changed
+27
-7
No files matched your search
@@ -90,6 +90,7 @@ $api_token = bin2hex(random_bytes(32));
|
||||
$env .= "API_TOKEN_SIGNATURE=" . $api_token . "\n";
|
||||
|
||||
$env .= "DB_FILE=database.db";
|
||||
$env .= "COOKIE_TOKEN_LIFETIME=86400";
|
||||
|
||||
file_put_contents(APP_PATH . ".env", $env);
|
||||
|
||||
|
||||
Reference in new issue
Block a user