Enable lockout when user is created from the registration page.

This commit is contained in:
Jared Goodwin 2023-02-14 20:47:58 -08:00
parent 564668f6cc
commit 57e3d5220f

View File

@ -96,7 +96,8 @@ namespace Remotely.Server.Areas.Identity.Pages.Account
IsServerAdmin = organizationCount == 0,
Organization = new Organization(),
UserOptions = new RemotelyUserOptions(),
IsAdministrator = true
IsAdministrator = true,
LockoutEnabled = true
};
var result = await _userManager.CreateAsync(user, Input.Password);