mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-28 16:34:05 +02:00
21 lines
455 B
C#
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);
|
|
}
|
|
}
|