diff --git a/LANCommander/Areas/Identity/Pages/Account/FirstTimeSetup.cshtml.cs b/LANCommander/Areas/Identity/Pages/Account/FirstTimeSetup.cshtml.cs index 36cc3da..8bb689a 100644 --- a/LANCommander/Areas/Identity/Pages/Account/FirstTimeSetup.cshtml.cs +++ b/LANCommander/Areas/Identity/Pages/Account/FirstTimeSetup.cshtml.cs @@ -136,6 +136,9 @@ namespace LANCommander.Areas.Identity.Pages.Account { var user = CreateUser(); + user.Approved = true; + user.ApprovedOn = DateTime.Now; + await _userStore.SetUserNameAsync(user, Input.UserName, CancellationToken.None); var result = await _userManager.CreateAsync(user, Input.Password);