Stuff and things

This commit is contained in:
Kim Ravn Hansen
2025-10-13 15:58:34 +02:00
parent 2fe8f7149c
commit 00d55d638c
5 changed files with 36 additions and 30 deletions

0
scenes/playerCreation/createUasswprdPrompt.js Normal file → Executable file
View File

View File

@@ -1,5 +1,6 @@
import { Config } from "../../config.js";
import { gGame } from "../../models/globals.js";
import { generateHash } from "../../utils/security.js";
import { Scene } from "../scene.js";
import { CreateUsernamePrompt } from "./createUsernamePrompt.js";
@@ -47,6 +48,6 @@ export class PlayerCreationScene extends Scene {
passwordAccepted(password) {
this.password = password;
this.session.sendText("*_Success_* ✅ You will now be asked to log in again, sorry for that ;)");
this.player.setPasswordHash(security.generateHash(this.password));
this.player.setPasswordHash(generateHash(this.password));
}
}