diff --git a/src/WorkFlowCheck.API/WorkFlowCheck.API.csproj b/src/WorkFlowCheck.API/WorkFlowCheck.API.csproj
index 741e280..45f13ef 100644
--- a/src/WorkFlowCheck.API/WorkFlowCheck.API.csproj
+++ b/src/WorkFlowCheck.API/WorkFlowCheck.API.csproj
@@ -46,4 +46,10 @@
+
+
+ Never
+
+
+
diff --git a/src/WorkFlowCheck.BL/Services/UserService.cs b/src/WorkFlowCheck.BL/Services/UserService.cs
index 2503cad..f22f445 100644
--- a/src/WorkFlowCheck.BL/Services/UserService.cs
+++ b/src/WorkFlowCheck.BL/Services/UserService.cs
@@ -135,7 +135,17 @@ namespace WorkFlowCheck.BL.Services
.FirstOrDefaultAsync();
if (user != null && PasswordHasher.VerifyPassword(user.PasswordHash, password))
{
- if (!string.IsNullOrEmpty(user.Email))
+ var canUseWebAdmin = false;
+ foreach (var userRole in user.UserRoles)
+ {
+ if (userRole.Role.CanUseWebAdmin)
+ {
+ canUseWebAdmin = true;
+ break;
+ }
+ }
+
+ if (!string.IsNullOrEmpty(user.Email) && canUseWebAdmin)
{
var code = CodeGenerator2F.GenerateSixDigitCode();
diff --git a/src/WorkFlowCheck.Web/Pages/Account/Login.cshtml b/src/WorkFlowCheck.Web/Pages/Account/Login.cshtml
index 7e94936..897fd4a 100644
--- a/src/WorkFlowCheck.Web/Pages/Account/Login.cshtml
+++ b/src/WorkFlowCheck.Web/Pages/Account/Login.cshtml
@@ -23,10 +23,7 @@
Bejelentkezés
- @if (!string.IsNullOrEmpty(Model.ErrorMessage))
- {
-
@Model.ErrorMessage
- }
+