added WYNX to login controller

This commit is contained in:
2019-01-13 20:01:47 -06:00
parent fee13804d5
commit 28d0e5f724
2 changed files with 19 additions and 11 deletions

View File

@@ -241,6 +241,8 @@ class LoginController extends Controller
$role = 'User';
} else if($accountType == 'W4RP') {
$role = 'User';
} elseif($accountType == 'Renter') {
$role = 'User';
} else {
$role = 'None';
}
@@ -277,18 +279,23 @@ class LoginController extends Controller
if(isset($corp_info->alliance_id)) {
if($corp_info->alliance_id == '99004116') {
return 'W4RP';
} else if(in_array($corp_info->alliance_id, array(99006297, //Drone Walkers
498125261, //Test Alliance Please Ignore
99003214, //Brave Collective
99004136, //Dangerous Voltage
99002367, //Evictus
99001657, //Rezada Regnum
99006069, //Tactical Supremacy
99001099, //The Watchmen.
99006297, //Drone Walkers
99003838)) //Requiem Eternal
) {
} else if(in_array($corp_info->alliance_id, [
99006297, //Drone Walkers
498125261, //Test Alliance Please Ignore
99003214, //Brave Collective
99004136, //Dangerous Voltage
99002367, //Evictus
99001657, //Rezada Regnum
99006069, //Tactical Supremacy
99001099, //The Watchmen.
99003838, //Requiem Eternal
99007289, //Federation Uprising
])) {
return 'Legacy';
} else if(in_arry($corp_info->alliance_id, [
99007077, //WYNX
])) {
return 'Renter';
} else {
return 'Guest';
}

View File

@@ -18,6 +18,7 @@ class CreateAllowedLoginsTable extends Migration
$table->increments('id');
$table->string('entity_id');
$table->string('entity_type');
$table->string('entity_name');
$table->timestamps();
});
}