Correcting the message sent to moderate the accounts

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-01-07 16:33:01 -08:00
parent 3f4365fe14
commit bdd3727804
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

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