Foo
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Prompt } from "../prompt.js";
|
||||
import * as security from "../../utils/security.js";
|
||||
import { Config } from "../../config.js";
|
||||
import { AuthenticationScene } from "./authenticationScene.js";
|
||||
|
||||
export class PasswordPrompt extends Prompt {
|
||||
//
|
||||
@@ -15,6 +16,11 @@ export class PasswordPrompt extends Prompt {
|
||||
return this.scene.player;
|
||||
}
|
||||
|
||||
/** @returns {AuthenticationScene} */
|
||||
get scene() {
|
||||
return this._scene;
|
||||
}
|
||||
|
||||
onReply(text) {
|
||||
//
|
||||
// Check of the password is sane. This is both bad from a security point
|
||||
@@ -70,10 +76,8 @@ export class PasswordPrompt extends Prompt {
|
||||
return;
|
||||
}
|
||||
|
||||
this.scene.passwordAccepted();
|
||||
|
||||
//
|
||||
// Password was correct, go to main game
|
||||
this.session.setState(new JustLoggedInState(this.session));
|
||||
// this.scene.passwordAccepted();
|
||||
this.scene.passwordAccepted();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user