mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
logout implementation
This commit is contained in:
@@ -228,6 +228,11 @@ else {
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/logout', (req, res) => {
|
||||
res.clearCookie('login_user_token');
|
||||
res.send({});
|
||||
});
|
||||
|
||||
app.post('/login', async (req, res) => {
|
||||
const hasLogin = await db.getCount(ScryptedUser) > 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user