refs #5863 logout remove $_SESSION['user']
gitea/hedera-web/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-07-12 07:17:20 +02:00
parent 9475c26663
commit d17bc6115f
2 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,7 @@ module.exports = new Class({
headers: {'Authorization': token}
};
await this.post('Accounts/logout', null, config);
await this.send('user/logout');
}
},

7
rest/user/logout.php Normal file
View File

@ -0,0 +1,7 @@
<?php
class Logout extends Vn\Web\JsonRequest {
function run($db) {
$_SESSION['user'] = null;
}
}