Skip to content

Commit 63137f2

Browse files
committed
Fix cookie name not being set from config
1 parent 41e39c3 commit 63137f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inc/config.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@
2222
$UNITY_FILE = "http://localhost/ff/main.unity3d";
2323

2424
# Class configuration
25+
// Database
2526
$DB = new Database();
2627
$DB_CONNECTION = $DB = $DB->loadDbFromFile("database.db");
2728

29+
// User
2830
$USER = new User($DB_CONNECTION);
2931
$USER->setTable("Accounts");
32+
$USER->cookie_name = $LOGIN_COOKIE_NAME;
3033

34+
// Authentication / remember me
3135
$AUTH = new AuthToken($DB_CONNECTION);
3236
$AUTH->setTable("Auth_Tokens");
37+
$AUTH->cookie_name = $REMEMBER_COOKIE_NAME;
3338

3439
# Bcrypt encryption configuration
3540
$bcrypt_options = [

0 commit comments

Comments
 (0)