bugfix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { Config } from "../../config.js";
|
import { Config } from "../../config.js";
|
||||||
import { gGame } from "../../models/globals.js";
|
import { gGame } from "../../models/globals.js";
|
||||||
import { generateHash } from "../../utils/security.js";
|
import { Security } from "../../utils/security.js";
|
||||||
import { Scene } from "../scene.js";
|
import { Scene } from "../scene.js";
|
||||||
import { CreateUsernamePrompt } from "./createUsernamePrompt.js";
|
import { CreateUsernamePrompt } from "./createUsernamePrompt.js";
|
||||||
|
|
||||||
@@ -48,6 +48,6 @@ export class PlayerCreationScene extends Scene {
|
|||||||
passwordAccepted(password) {
|
passwordAccepted(password) {
|
||||||
this.password = password;
|
this.password = password;
|
||||||
this.session.sendText("*_Success_* ✅ You will now be asked to log in again, sorry for that ;)");
|
this.session.sendText("*_Success_* ✅ You will now be asked to log in again, sorry for that ;)");
|
||||||
this.player.setPasswordHash(generateHash(this.password));
|
this.player.setPasswordHash(Security.generateHash(this.password));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user