create user
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user