create user
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 1m24s
Build and Push Docker Image to Gitea Container Registry / build-and-push (pull_request) Successful in 1m19s

This commit is contained in:
Tygozwolle
2026-07-24 11:56:40 +02:00
parent 91a2aeb3fa
commit 09de033d70
5 changed files with 209 additions and 60 deletions
@@ -331,18 +331,6 @@ public class RadiusService : IRadiusService
{
await _db.Database.EnsureCreatedAsync();
if (!await _db.AdminUsers.AnyAsync())
{
// Default admin user: admin / admin123
string hash = BCrypt.Net.BCrypt.HashPassword("admin123");
_db.AdminUsers.Add(new AdminUser
{
Username = "admin",
PasswordHash = hash,
CreatedAt = DateTime.UtcNow
});
}
if (!await _db.SystemSettings.AnyAsync())
{
_db.SystemSettings.Add(new SystemSetting { Key = "default_session_time", Value = "60", UpdatedAt = DateTime.UtcNow });