返回提交历史
Modified
src/controllers/api/loginController.ts
+5
-2
Modified
src/types/loginTypes.ts
+2
-2
XFEstudio/XFESpaceNinjaServer
fix: login failure on u23 and below (#1972)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1972 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
355a70d3
代码差异
2 个文件
+7
-4
@@ -103,13 +103,16 @@ const createLoginResponse = (myAddress: string, account: IDatabaseAccountJson, b
103
103
CountryCode: account.CountryCode,
104
104
AmazonAuthToken: account.AmazonAuthToken,
105
105
AmazonRefreshToken: account.AmazonRefreshToken,
106
ConsentNeeded: account.ConsentNeeded,
107
TrackedSettings: account.TrackedSettings,
108
106
Nonce: account.Nonce,
109
107
IRC: config.myIrcAddresses ?? [myAddress],
110
108
NRS: config.NRS,
111
109
BuildLabel: buildLabel
112
110
};
111
if (version_compare(buildLabel, "2018.11.08.14.45") >= 0) {
112
// U24 and up
113
resp.ConsentNeeded = account.ConsentNeeded;
114
resp.TrackedSettings = account.TrackedSettings;
115
}
113
116
if (version_compare(buildLabel, "2019.08.29.20.01") >= 0) {
114
117
// U25.7 and up
115
118
resp.ForceLogoutVersion = account.ForceLogoutVersion;
@@ -8,8 +8,8 @@ export interface IAccountAndLoginResponseCommons {
8
8
ForceLogoutVersion?: number;
9
9
AmazonAuthToken?: string;
10
10
AmazonRefreshToken?: string;
11
ConsentNeeded: boolean;
12
TrackedSettings: string[];
11
ConsentNeeded?: boolean;
12
TrackedSettings?: string[];
13
13
Nonce: number;
14
14
}
15
15