Return Value
System.String.
public class RejectController : Controller { private IPageRequest _page; private IFireWall _fireWall; public RejectController(IPageRequest page, IFireWall fireWall) { _page = page; _fireWall = fireWall; } [DisableFirewall] public IActionResult ResetBlockedUsers(string resetKey) { //test if the resetKey belongs to the userif (_page.User.GetUserSalt() == resetKey) { var user= _page.User.AsFirewallUser(); _fireWall.ResetFireWallBlocking(user); } return RedirectToAction("index", "Home"); } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2