cgserver 14.0.3 → 14.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -264,12 +264,15 @@ class MongoAccountService extends MongoBaseService_1.MongoBaseService {
|
|
|
264
264
|
rs.errcode = _error_1.EErrorCode.Login_Failed;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
else if (from == ini_1.EAccountFrom.Name
|
|
267
|
+
else if (from == ini_1.EAccountFrom.Name) {
|
|
268
268
|
rs.account = await this.findOne({ name: key, password: pass });
|
|
269
|
-
if (!rs.account
|
|
269
|
+
if (!rs.account) {
|
|
270
270
|
rs.errcode = _error_1.EErrorCode.Login_Failed;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
+
else if (from == ini_1.EAccountFrom.Guest) {
|
|
274
|
+
rs.account = await this.findOne({ name: key });
|
|
275
|
+
}
|
|
273
276
|
return rs;
|
|
274
277
|
}
|
|
275
278
|
}
|