mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-11 15:14:31 +08:00
Fix 500 error when account token does not resolve to account
This commit is contained in:
parent
d0666540b9
commit
f9952f9fa7
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ const validate = (request, username, password, callback) => {
|
|||
}
|
||||
token.getAccount().then((account) => {
|
||||
if (!account) {
|
||||
callback(new Error("Could not find Account referenced by AccountToken"), false, {});
|
||||
callback(null, false, {});
|
||||
return;
|
||||
}
|
||||
SchedulerUtils.notifyAccountIsActive(account.id)
|
||||
|
|
Loading…
Add table
Reference in a new issue