mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-21 22:16:24 +01:00
Fix server crash in auto login
This commit is contained in:
parent
a421af9ea9
commit
71f41d5233
@ -511,7 +511,7 @@ async function tryAutoLogin(request) {
|
||||
const userHandles = await getAllUserHandles();
|
||||
if (userHandles.length === 1) {
|
||||
const user = await storage.getItem(toKey(userHandles[0]));
|
||||
if (!user.password) {
|
||||
if (user && !user.password) {
|
||||
request.session.handle = userHandles[0];
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user