mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Correcting the message sent to moderate the accounts
--HG-- branch : 1.x
This commit is contained in:
@@ -32,8 +32,8 @@ namespace Orchard.Users.Handlers {
|
||||
return;
|
||||
|
||||
if ( context.Type == MessageTypes.Moderation ) {
|
||||
context.MailMessage.Subject = T("User needs moderation").Text;
|
||||
context.MailMessage.Body = T("The following user account needs to be moderated: {0}", recipient.UserName).Text;
|
||||
context.MailMessage.Subject = T("New account").Text;
|
||||
context.MailMessage.Body = T("The user <b>{0}</b> with email <b>{1}</b> has requested a new account. This user won't be able to log while his account has not been approved.", context.Properties["UserName"], context.Properties["Email"]).Text;
|
||||
}
|
||||
|
||||
if (context.Type == MessageTypes.Validation) {
|
||||
|
@@ -89,7 +89,7 @@ namespace Orchard.Users.Services {
|
||||
}
|
||||
var recipient = GetUser(userName);
|
||||
if (recipient != null)
|
||||
_messageManager.Send(recipient.ContentItem.Record, MessageTypes.Moderation, "email");
|
||||
_messageManager.Send(recipient.ContentItem.Record, MessageTypes.Moderation, "email" , new Dictionary<string, string> { { "UserName", createUserParams.Username}, { "Email" , createUserParams.Email } });
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user