1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-06-01 19:34:03 +02:00
Minecraft-Phantom-Panel/Server/Phantom.Server.Web/Base/LoginEvents.cs

22 lines
497 B
C#

using Phantom.Server.Database.Entities;
using Phantom.Server.Services.Audit;
using Phantom.Server.Web.Identity.Interfaces;
namespace Phantom.Server.Web.Base;
sealed class LoginEvents : ILoginEvents {
private readonly AuditLog auditLog;
public LoginEvents(AuditLog auditLog) {
this.auditLog = auditLog;
}
public void UserLoggedIn(UserEntity user) {
auditLog.AddUserLoggedInEvent(user);
}
public void UserLoggedOut(Guid userGuid) {
auditLog.AddUserLoggedOutEvent(userGuid);
}
}