Skip to content

Commit 6fe7fb2

Browse files
authored
Show a badge if a user is locked out. (#18010)
1 parent d19a4d3 commit 6fe7fb2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/OrchardCore.Modules/OrchardCore.Users/Views/UserFields.cshtml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
<i class="fa-solid fa-envelope-open" aria-hidden="true"></i> @T["Unconfirmed"]
1212
</span>
1313
}
14+
@if (await UserManager.IsLockedOutAsync(Model.User))
15+
{
16+
<span class="badge text-bg-danger ms-2" title="@T["The user is currently locked out."]">
17+
<i class="fa-solid fa-lock" aria-hidden="true"></i> @T["Locked"]
18+
</span>
19+
}
1420
@if (!Model.User.IsEnabled)
1521
{
1622
<span class="badge text-bg-danger ms-2" title="@T["Disabled"]">

0 commit comments

Comments
 (0)