forked from verdnatura/hedera-web
refs #5863 logout remove $_SESSION['user']
This commit is contained in:
parent
9475c26663
commit
d17bc6115f
|
@ -86,6 +86,7 @@ module.exports = new Class({
|
||||||
headers: {'Authorization': token}
|
headers: {'Authorization': token}
|
||||||
};
|
};
|
||||||
await this.post('Accounts/logout', null, config);
|
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