- PHP Framework upgrade 3.5.0 -> 3.5.1 (fixes some issues with CREST cURL caching, and SESSION management)
- #138 added "cookie logout" to "logout" menu entry
This commit is contained in:
@@ -94,7 +94,7 @@ class CharacterModel extends BasicModel {
|
||||
'characterMaps' => [
|
||||
'has-many' => ['Model\CharacterMapModel', 'characterId']
|
||||
],
|
||||
'characterTokens' => [
|
||||
'characterAuthentications' => [
|
||||
'has-many' => ['Model\CharacterAuthenticationModel', 'characterId']
|
||||
]
|
||||
];
|
||||
@@ -538,4 +538,15 @@ class CharacterModel extends BasicModel {
|
||||
return $maps;
|
||||
}
|
||||
|
||||
public function logout(){
|
||||
if($this->characterAuthentications){
|
||||
foreach($this->characterAuthentications as $characterAuthentication){
|
||||
/**
|
||||
* @var $characterAuthentication CharacterAuthenticationModel
|
||||
*/
|
||||
$characterAuthentication->erase();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user