Fix hashPassword

This commit is contained in:
advplyr committed 2025-07-08 09:14:07 -05:00
1 parent 6cc7a44a22
commit 4ff7355262
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -431,7 +431,7 @@ class Server {
Logger.info(`[Server] Initializing new server`)
const newRoot = req.body.newRoot
const rootUsername = newRoot.username || 'root'
const rootPash = newRoot.password ? await this.auth.hashPass(newRoot.password) : ''
const rootPash = newRoot.password ? await this.auth.localAuthStrategy.hashPassword(newRoot.password) : ''
if (!rootPash) Logger.warn(`[Server] Creating root user with no password`)
await Database.createRootUser(rootUsername, rootPash, this.auth)