mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 03:17:32 +08:00
#19187: Adding CreateUserParams to the UserContext
Work Item: 19187 --HG-- branch : 1.x
This commit is contained in:
@@ -4,5 +4,6 @@ namespace Orchard.Users.Events {
|
||||
public class UserContext {
|
||||
public IUser User { get; set; }
|
||||
public bool Cancel { get; set; }
|
||||
public CreateUserParams UserParameters { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -63,7 +63,7 @@ namespace Orchard.Users.Services {
|
||||
user.Record.EmailStatus = UserStatus.Approved;
|
||||
}
|
||||
|
||||
var userContext = new UserContext {User = user, Cancel = false};
|
||||
var userContext = new UserContext {User = user, Cancel = false, UserParameters = createUserParams};
|
||||
foreach(var userEventHandler in _userEventHandlers) {
|
||||
userEventHandler.Creating(userContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user