mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 03:14:10 +08:00
Cleanup
--HG-- branch : contributions
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Orchard.Users.Controllers {
|
||||
}
|
||||
|
||||
public ActionResult LogOff(string returnUrl) {
|
||||
IUser wasLoggedInUser = _authenticationService.GetAuthenticatedUser();
|
||||
var wasLoggedInUser = _authenticationService.GetAuthenticatedUser();
|
||||
_authenticationService.SignOut();
|
||||
if (wasLoggedInUser != null)
|
||||
foreach (var userEventHandler in _userEventHandlers) {
|
||||
|
@@ -1,10 +1,8 @@
|
||||
using Orchard.Events;
|
||||
using Orchard.Security;
|
||||
|
||||
namespace Orchard.Users.Events
|
||||
{
|
||||
public interface IUserEventHandler : IEventHandler
|
||||
{
|
||||
namespace Orchard.Users.Events {
|
||||
public interface IUserEventHandler : IEventHandler {
|
||||
/// <summary>
|
||||
/// Called before a User is created
|
||||
/// </summary>
|
||||
@@ -15,8 +13,6 @@ namespace Orchard.Users.Events
|
||||
/// </summary>
|
||||
void Created(UserContext context);
|
||||
|
||||
// NEW BELOW HERE
|
||||
|
||||
/// <summary>
|
||||
/// Called after a user has logged in
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user