Skip to content

Commit

Permalink
GH-139 Use account activation helper function in rest of the fleet se…
Browse files Browse the repository at this point in the history
…nding code
  • Loading branch information
mdziekon committed Dec 20, 2020
1 parent f02bcef commit cf4ee56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ajax/galaxyfleet.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ function CreateReturn($ReturnCode)
{
CreateReturn('601');
}
if(!empty($_User['activation_code']))
{

if (!isUserAccountActivated($_User)) {
CreateReturn('661');
}

$Galaxy = (isset($_POST['galaxy']) ? intval($_POST['galaxy']) : 0);
$System = (isset($_POST['system']) ? intval($_POST['system']) : 0);
$Planet = (isset($_POST['planet']) ? intval($_POST['planet']) : 0);
Expand Down
4 changes: 2 additions & 2 deletions ajax/sendmissiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ function CreateReturn($ReturnCode, $Update = '0')
{
CreateReturn('601');
}
if(!empty($_User['activation_code']))
{

if (!isUserAccountActivated($_User)) {
CreateReturn('661');
}

Expand Down

0 comments on commit cf4ee56

Please sign in to comment.