mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 21:28:23 +00:00
Make sure users with wrong tokens are locked out instead of crashing the app
This commit is contained in:
parent
36a21bacac
commit
40b8f0c293
1 changed files with 2 additions and 2 deletions
|
@ -286,10 +286,10 @@ function auth(data) {
|
|||
}
|
||||
} else {
|
||||
client = manager.findClient(data.user, data.token);
|
||||
var signedIn = data.token && data.token === client.config.token;
|
||||
var signedIn = data.token && client && data.token === client.config.token;
|
||||
var token;
|
||||
|
||||
if (data.remember || data.token) {
|
||||
if (client && (data.remember || data.token)) {
|
||||
token = client.config.token;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue