fix: login failure on U16 #1991
@ -41,7 +41,7 @@ export const loginController: RequestHandler = async (request, response) => {
 | 
				
			|||||||
                email: loginRequest.email,
 | 
					                email: loginRequest.email,
 | 
				
			||||||
                password: loginRequest.password,
 | 
					                password: loginRequest.password,
 | 
				
			||||||
                DisplayName: name,
 | 
					                DisplayName: name,
 | 
				
			||||||
                CountryCode: loginRequest.lang.toUpperCase(),
 | 
					                CountryCode: loginRequest.lang?.toUpperCase() ?? "EN",
 | 
				
			||||||
                ClientType: loginRequest.ClientType == "webui-register" ? "webui" : loginRequest.ClientType,
 | 
					                ClientType: loginRequest.ClientType == "webui-register" ? "webui" : loginRequest.ClientType,
 | 
				
			||||||
                CrossPlatformAllowed: true,
 | 
					                CrossPlatformAllowed: true,
 | 
				
			||||||
                ForceLogoutVersion: 0,
 | 
					                ForceLogoutVersion: 0,
 | 
				
			||||||
@ -91,7 +91,7 @@ export const loginController: RequestHandler = async (request, response) => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        account.ClientType = loginRequest.ClientType;
 | 
					        account.ClientType = loginRequest.ClientType;
 | 
				
			||||||
        account.Nonce = nonce;
 | 
					        account.Nonce = nonce;
 | 
				
			||||||
        account.CountryCode = loginRequest.lang.toUpperCase();
 | 
					        account.CountryCode = loginRequest.lang?.toUpperCase() ?? "EN";
 | 
				
			||||||
        account.BuildLabel = buildLabel;
 | 
					        account.BuildLabel = buildLabel;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    await account.save();
 | 
					    await account.save();
 | 
				
			||||||
 | 
				
			|||||||
@ -35,11 +35,11 @@ export interface ILoginRequest {
 | 
				
			|||||||
    email: string;
 | 
					    email: string;
 | 
				
			||||||
    password: string;
 | 
					    password: string;
 | 
				
			||||||
    time: number;
 | 
					    time: number;
 | 
				
			||||||
    s: string;
 | 
					    s?: string;
 | 
				
			||||||
    lang: string;
 | 
					    lang?: string;
 | 
				
			||||||
    date: number;
 | 
					    date: number;
 | 
				
			||||||
    ClientType: string;
 | 
					    ClientType?: string;
 | 
				
			||||||
    PS: string;
 | 
					    PS?: string;
 | 
				
			||||||
    kick?: boolean;
 | 
					    kick?: boolean;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user