Remove User legacy API token

This commit is contained in:
advplyr committed 2026-11-03 17:00:53 -06:00
1 parent 8c87ae8bad
commit c38fe60360
10 files changed
+24 -123

No files matched your search

+1 -1
View File
@@ -488,7 +488,7 @@ class Server {
const rootUsername = newRoot.username || 'root'
const rootPash = newRoot.password ? await this.auth.localAuthStrategy.hashPassword(newRoot.password) : ''
if (!rootPash) Logger.warn(`[Server] Creating root user with no password`)
const created = await Database.createRootUser(rootUsername, rootPash, this.auth)
const created = await Database.createRootUser(rootUsername, rootPash)
if (!created) {
Logger.error(`[Server] attempt to init server when server already has a root user`)
return res.sendStatus(500)