mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Normalizing line endings in MembershipService
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Orchard.Users.Services {
|
||||
public class MembershipService : IMembershipService {
|
||||
private readonly IOrchardServices _orchardServices;
|
||||
private readonly IMessageService _messageService;
|
||||
private readonly IUserEventHandler _userEventHandlers;
|
||||
private readonly IUserEventHandler _userEventHandlers;
|
||||
private readonly IEncryptionService _encryptionService;
|
||||
private readonly IShapeFactory _shapeFactory;
|
||||
private readonly IShapeDisplay _shapeDisplay;
|
||||
@@ -28,7 +28,7 @@ namespace Orchard.Users.Services {
|
||||
public MembershipService(
|
||||
IOrchardServices orchardServices,
|
||||
IMessageService messageService,
|
||||
IUserEventHandler userEventHandlers,
|
||||
IUserEventHandler userEventHandlers,
|
||||
IClock clock,
|
||||
IEncryptionService encryptionService,
|
||||
IShapeFactory shapeFactory,
|
||||
@@ -76,7 +76,7 @@ namespace Orchard.Users.Services {
|
||||
}
|
||||
|
||||
var userContext = new UserContext {User = user, Cancel = false, UserParameters = createUserParams};
|
||||
_userEventHandlers.Creating(userContext);
|
||||
_userEventHandlers.Creating(userContext);
|
||||
|
||||
if(userContext.Cancel) {
|
||||
return null;
|
||||
@@ -84,9 +84,9 @@ namespace Orchard.Users.Services {
|
||||
|
||||
_orchardServices.ContentManager.Create(user);
|
||||
|
||||
_userEventHandlers.Created(userContext);
|
||||
if (user.RegistrationStatus == UserStatus.Approved) {
|
||||
_userEventHandlers.Approved(user);
|
||||
_userEventHandlers.Created(userContext);
|
||||
if (user.RegistrationStatus == UserStatus.Approved) {
|
||||
_userEventHandlers.Approved(user);
|
||||
}
|
||||
|
||||
if ( registrationSettings != null
|
||||
|
Reference in New Issue
Block a user