|
|
@ -63,7 +63,6 @@ namespace Emby.Server.Implementations.Activity
|
|
|
|
_sessionManager.AuthenticationSucceeded += OnAuthenticationSucceeded;
|
|
|
|
_sessionManager.AuthenticationSucceeded += OnAuthenticationSucceeded;
|
|
|
|
_sessionManager.SessionEnded += OnSessionEnded;
|
|
|
|
_sessionManager.SessionEnded += OnSessionEnded;
|
|
|
|
|
|
|
|
|
|
|
|
_userManager.OnUserPasswordChanged += OnUserPasswordChanged;
|
|
|
|
|
|
|
|
_userManager.OnUserLockedOut += OnUserLockedOut;
|
|
|
|
_userManager.OnUserLockedOut += OnUserLockedOut;
|
|
|
|
|
|
|
|
|
|
|
|
return Task.CompletedTask;
|
|
|
|
return Task.CompletedTask;
|
|
|
@ -145,18 +144,6 @@ namespace Emby.Server.Implementations.Activity
|
|
|
|
}).ConfigureAwait(false);
|
|
|
|
}).ConfigureAwait(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private async void OnUserPasswordChanged(object sender, GenericEventArgs<User> e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
await CreateLogEntry(new ActivityLog(
|
|
|
|
|
|
|
|
string.Format(
|
|
|
|
|
|
|
|
CultureInfo.InvariantCulture,
|
|
|
|
|
|
|
|
_localization.GetLocalizedString("UserPasswordChangedWithName"),
|
|
|
|
|
|
|
|
e.Argument.Username),
|
|
|
|
|
|
|
|
"UserPasswordChanged",
|
|
|
|
|
|
|
|
e.Argument.Id))
|
|
|
|
|
|
|
|
.ConfigureAwait(false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private async void OnSessionStarted(object sender, SessionEventArgs e)
|
|
|
|
private async void OnSessionStarted(object sender, SessionEventArgs e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var session = e.SessionInfo;
|
|
|
|
var session = e.SessionInfo;
|
|
|
@ -265,7 +252,6 @@ namespace Emby.Server.Implementations.Activity
|
|
|
|
_sessionManager.AuthenticationSucceeded -= OnAuthenticationSucceeded;
|
|
|
|
_sessionManager.AuthenticationSucceeded -= OnAuthenticationSucceeded;
|
|
|
|
_sessionManager.SessionEnded -= OnSessionEnded;
|
|
|
|
_sessionManager.SessionEnded -= OnSessionEnded;
|
|
|
|
|
|
|
|
|
|
|
|
_userManager.OnUserPasswordChanged -= OnUserPasswordChanged;
|
|
|
|
|
|
|
|
_userManager.OnUserLockedOut -= OnUserLockedOut;
|
|
|
|
_userManager.OnUserLockedOut -= OnUserLockedOut;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|