Skip to content

Commit

Permalink
Enable lockout when user is created from the registration page.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Feb 15, 2023
1 parent 564668f commit 57e3d52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Server/Areas/Identity/Pages/Account/Register.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public async Task<IActionResult> OnPostAsync(string returnUrl = null)
IsServerAdmin = organizationCount == 0,
Organization = new Organization(),
UserOptions = new RemotelyUserOptions(),
IsAdministrator = true
IsAdministrator = true,
LockoutEnabled = true
};

var result = await _userManager.CreateAsync(user, Input.Password);
Expand Down

0 comments on commit 57e3d52

Please sign in to comment.