mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Fix handleFetchPlayerCodeRequest returning incorrect properties
This commit is contained in:
1 parent
5ae19042f1
commit
cafafbd540
2 files changed
+6
-6
No files matched your search
@@ -176,7 +176,7 @@ export class ControllerPlugin extends BaseControllerPlugin {
|
||||
let playerCode = await generateCode(this.controller.config.get("player_auth.code_length"));
|
||||
let expiresMs = Date.now() + this.controller.config.get("player_auth.code_timeout") * 1000;
|
||||
this.players.set(request.player, { playerCode, verifyCode: null, expiresMs });
|
||||
return { player_code: playerCode, controller_url: this.controller.getControllerUrl() };
|
||||
return { playerCode, controllerUrl: this.controller.getControllerUrl() };
|
||||
}
|
||||
|
||||
async handleSetVerifyCodeRequest(request: SetVerifyCodeRequest) {
|
||||
|
||||
Reference in new issue
Block a user