Added new node manager. Added new login/register screen. AuditLog. Permissions

This commit is contained in:
Marcel Baumgartner
2023-02-17 18:03:52 +01:00
parent 54173637c8
commit 95999eae26
51 changed files with 2979 additions and 116 deletions

View File

@@ -1,5 +1,6 @@
using JWT.Algorithms;
using JWT.Builder;
using Logging.Net;
using Moonlight.App.Database.Entities;
using Moonlight.App.Exceptions;
using Moonlight.App.Models.Misc;
@@ -80,13 +81,13 @@ public class UserService
{
var user = UserRepository.Get()
.FirstOrDefault(
x => x.Email.Equals(
email
)
x => x.Email == email
);
if (user == null)
{
Logger.Debug("User not found");
//AuditLogService.Log("login:fail", $"Invalid email: {email}. Password: {password}");
throw new DisplayException("Email and password combination not found");
}