mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding Localizer to translate strings in UserCommands
--HG-- branch : dev
This commit is contained in:
@@ -45,14 +45,14 @@ namespace Orchard.Users.Commands {
|
|||||||
return userUnicityMessage;
|
return userUnicityMessage;
|
||||||
}
|
}
|
||||||
if (Password == null || Password.Length < MinPasswordLength) {
|
if (Password == null || Password.Length < MinPasswordLength) {
|
||||||
return String.Format("You must specify a password of {0} or more characters.", MinPasswordLength);
|
return T("You must specify a password of {0} or more characters.", MinPasswordLength).ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
var user = _membershipService.CreateUser(new CreateUserParams(UserName, Password, Email, null, null, true));
|
var user = _membershipService.CreateUser(new CreateUserParams(UserName, Password, Email, null, null, true));
|
||||||
if (user != null)
|
if (user != null)
|
||||||
return "User created successfully";
|
return T("User created successfully").ToString();
|
||||||
else
|
else
|
||||||
return "The authentication provider returned an error";
|
return T("The authentication provider returned an error").ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
int MinPasswordLength {
|
int MinPasswordLength {
|
||||||
|
Reference in New Issue
Block a user