Skip to content

Commit

Permalink
Update Login.php
Browse files Browse the repository at this point in the history
  • Loading branch information
beats-dh committed Aug 25, 2023
1 parent 9bf174c commit cd267be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controller/Api/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static function selectAccount($request)
'characters' => $arrayPlayers,
],
'session' => [
'sessionkey' => ($authentication->status == 1) ? "$email\n$password\n$token\n" . SESSION_DURATION : "$email\n$password",
'sessionkey' => ($authentication && $authentication->status == 1 ) ? "$email\n$password\n$token\n" . SESSION_DURATION : "$email\n$password",
'lastlogintime' => 0,
'ispremium' => $account ? true : false,
'premiumuntil' => $account ? 0 : (time() + ($account->premdays * 86400)),
Expand Down

0 comments on commit cd267be

Please sign in to comment.