test into master #42
|
@ -86,6 +86,7 @@ module.exports = new Class({
|
|||
headers: {'Authorization': token}
|
||||
};
|
||||
await this.post('Accounts/logout', null, config);
|
||||
await this.send('user/logout');
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
class Logout extends Vn\Web\JsonRequest {
|
||||
function run($db) {
|
||||
$_SESSION['user'] = null;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue