test into master #42

Merged
juan merged 24 commits from test into master 2023-07-27 20:07:43 +00:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit d17bc6115f - Show all commits

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;
}
}