alters Model/Pathfinder/CharacterModel#isAuthorized() to authorize characters based on session

This commit is contained in:
soneill
2021-07-29 15:47:43 +12:00
parent bd55ba8316
commit 567eedc9f8

View File

@@ -655,6 +655,12 @@ class CharacterModel extends AbstractPathfinderModel {
){
// no corp/ally restrictions set -> any character is allowed to login
$authStatus = 'OK';
}elseif(
Config::getPathfinderData('login.session_sharing') === 1 &&
is_array($this->getF3()->get(User::SESSION_KEY_CHARACTERS))
){
// authorized character is already logged in -> any subsequent character is allowed to login
$authStatus = 'OK';
}else{
// check if character is set in whitelist
if(