From 5fefd189af001e4c3b09c5776d7dde6b6fb518e2 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 6 May 2025 06:05:12 -0700 Subject: [PATCH] fix: login failure on U15 (#1997) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1997 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/controllers/api/loginController.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/loginController.ts b/src/controllers/api/loginController.ts index 8f368a67..07a9b9da 100644 --- a/src/controllers/api/loginController.ts +++ b/src/controllers/api/loginController.ts @@ -107,9 +107,11 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b AmazonAuthToken: account.AmazonAuthToken, AmazonRefreshToken: account.AmazonRefreshToken, Nonce: account.Nonce, - NRS: config.NRS, BuildLabel: buildLabel }; + if (version_compare(buildLabel, "2015.02.13.10.41") >= 0) { + resp.NRS = config.NRS; + } if (version_compare(buildLabel, "2015.05.14.16.29") >= 0) { // U17 and up resp.IRC = config.myIrcAddresses ?? [myAddress];