Should fix all crashes when login for iOS client

This commit is contained in:
mingjun97 2022-04-30 22:30:47 -07:00 committed by Melledy
parent d3ac090daa
commit 049086b21a

View File

@ -346,6 +346,9 @@ public final class DispatchServer {
responseData.data.account.uid = account.getId();
responseData.data.account.token = account.generateSessionKey();
responseData.data.account.email = account.getEmail();
if (responseData.data.account.email == null) {
responseData.data.account.email = "";
}
Grasscutter.getLogger().info(String.format("[Dispatch] Client %s logged in as %s", req.ip(),
responseData.data.account.uid));