Walter.Web.FireWall
GetUserSalt Method
Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall Namespace > IUserIdentity Interface : GetUserSalt Method
Gets the user salt, a personal cipher key for a user and is based on the firewall identifier.
Syntax
string GetUserSalt()

Return Value

System.String.
Example
Use the ability to send users a reset email after getting blocked by using a reset key specific to the user
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");
                 }
             }
Requirements

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

See Also

Reference

IUserIdentity Interface
IUserIdentity Members