Added Basic User Management

This commit is contained in:
2025-09-19 19:28:39 -06:00
parent 9ee25b8ce1
commit 1582c01c41
9 changed files with 857 additions and 47 deletions

View File

@@ -517,15 +517,6 @@ switch ($choice) {
$host.UI.RawUI.WindowTitle = "Borealis Server"
Write-Host "Ensuring Server Dependencies Exist..." -ForegroundColor DarkCyan
Run-Step "First-Run: Generating users.json" {
$usersJsonPath = Join-Path $scriptDir "users.json"
if (-not (Test-Path $usersJsonPath)) {
$defaultUsers = @{ users = @(@{ username = "admin"; password = "e6c83b282aeb2e022844595721cc00bbda47cb24537c1779f9bb84f04039e1676e6ba8573e588da1052510e3aa0a32a9e55879ae22b0c2d62136fc0a3e85f8bb" }) } | ConvertTo-Json -Depth 4
$utf8NoBom = New-Object System.Text.UTF8Encoding($false)
[System.IO.File]::WriteAllText($usersJsonPath, $defaultUsers, $utf8NoBom)
}
}
Install_Shared_Dependencies
Install_Server_Dependencies