mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
committed by
Sébastien Ros
parent
fe4a116cb4
commit
ddfcfd7379
@@ -15,13 +15,19 @@ namespace Orchard.Users.Handlers {
|
|||||||
public void Creating(UserContext context) {
|
public void Creating(UserContext context) {
|
||||||
_workflowManager.TriggerEvent("UserCreating",
|
_workflowManager.TriggerEvent("UserCreating",
|
||||||
context.User,
|
context.User,
|
||||||
() => new Dictionary<string, object> {{"User", context}});
|
() => new Dictionary<string, object> {
|
||||||
|
{"User", context.User},
|
||||||
|
{"UserParameters", context.UserParameters}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Created(UserContext context) {
|
public void Created(UserContext context) {
|
||||||
_workflowManager.TriggerEvent("UserCreated",
|
_workflowManager.TriggerEvent("UserCreated",
|
||||||
context.User,
|
context.User,
|
||||||
() => new Dictionary<string, object> {{"User", context}});
|
() => new Dictionary<string, object> {
|
||||||
|
{"User", context.User},
|
||||||
|
{"UserParameters", context.UserParameters}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void LoggingIn(string userNameOrEmail, string password) {
|
public void LoggingIn(string userNameOrEmail, string password) {
|
||||||
@@ -78,4 +84,4 @@ namespace Orchard.Users.Handlers {
|
|||||||
() => new Dictionary<string, object> {{"User", user}});
|
() => new Dictionary<string, object> {{"User", user}});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user