mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Enable lockout when user is created from the registration page.
This commit is contained in:
parent
564668f6cc
commit
57e3d5220f
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user