mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 13:22:08 +08:00
Normalizing line endings in Orchard.Users AdminController
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Orchard.Users.Controllers {
|
||||
public class AdminController : Controller, IUpdateModel {
|
||||
private readonly IMembershipService _membershipService;
|
||||
private readonly IUserService _userService;
|
||||
private readonly IUserEventHandler _userEventHandlers;
|
||||
private readonly IUserEventHandler _userEventHandlers;
|
||||
private readonly ISiteService _siteService;
|
||||
|
||||
public AdminController(
|
||||
@@ -33,7 +33,7 @@ namespace Orchard.Users.Controllers {
|
||||
IMembershipService membershipService,
|
||||
IUserService userService,
|
||||
IShapeFactory shapeFactory,
|
||||
IUserEventHandler userEventHandlers,
|
||||
IUserEventHandler userEventHandlers,
|
||||
ISiteService siteService) {
|
||||
Services = services;
|
||||
_membershipService = membershipService;
|
||||
@@ -318,7 +318,7 @@ namespace Orchard.Users.Controllers {
|
||||
if ( user != null ) {
|
||||
user.As<UserPart>().RegistrationStatus = UserStatus.Approved;
|
||||
Services.Notifier.Information(T("User {0} approved", user.UserName));
|
||||
_userEventHandlers.Approved(user);
|
||||
_userEventHandlers.Approved(user);
|
||||
}
|
||||
|
||||
return RedirectToAction("Index");
|
||||
|
||||
Reference in New Issue
Block a user