1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-05-28 16:34:05 +02:00
Minecraft-Phantom-Panel/Server/Phantom.Server.Web/Base/LoginEvents.cs

21 lines
455 B
C#

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(string userId) {
auditLog.AddUserLoggedInEvent(userId);
}
public void UserLoggedOut(string userId) {
auditLog.AddUserLoggedOutEvent(userId);
}
}