#19187: Adding CreateUserParams to the UserContext

Work Item: 19187

--HG--
branch : 1.x
This commit is contained in:
Nicholas Mayne
2013-06-06 11:11:12 +01:00
parent d37e52c4cf
commit c4249dfd39
2 changed files with 2 additions and 1 deletions

View File

@@ -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; }
}
}

View File

@@ -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);
}