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 {
|
public class AdminController : Controller, IUpdateModel {
|
||||||
private readonly IMembershipService _membershipService;
|
private readonly IMembershipService _membershipService;
|
||||||
private readonly IUserService _userService;
|
private readonly IUserService _userService;
|
||||||
private readonly IUserEventHandler _userEventHandlers;
|
private readonly IUserEventHandler _userEventHandlers;
|
||||||
private readonly ISiteService _siteService;
|
private readonly ISiteService _siteService;
|
||||||
|
|
||||||
public AdminController(
|
public AdminController(
|
||||||
@@ -33,7 +33,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
IMembershipService membershipService,
|
IMembershipService membershipService,
|
||||||
IUserService userService,
|
IUserService userService,
|
||||||
IShapeFactory shapeFactory,
|
IShapeFactory shapeFactory,
|
||||||
IUserEventHandler userEventHandlers,
|
IUserEventHandler userEventHandlers,
|
||||||
ISiteService siteService) {
|
ISiteService siteService) {
|
||||||
Services = services;
|
Services = services;
|
||||||
_membershipService = membershipService;
|
_membershipService = membershipService;
|
||||||
@@ -318,7 +318,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
if ( user != null ) {
|
if ( user != null ) {
|
||||||
user.As<UserPart>().RegistrationStatus = UserStatus.Approved;
|
user.As<UserPart>().RegistrationStatus = UserStatus.Approved;
|
||||||
Services.Notifier.Information(T("User {0} approved", user.UserName));
|
Services.Notifier.Information(T("User {0} approved", user.UserName));
|
||||||
_userEventHandlers.Approved(user);
|
_userEventHandlers.Approved(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
|
|||||||
Reference in New Issue
Block a user