This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult HelpLogin() | |
{ | |
const string key = "abcdefghijklmnopqrtuvwxyz"; | |
const string pathTemplate = "http://demo.freshdesk.com/login/sso?name={0}&email={1}×tamp={2}&hash={3}"; | |
var username = UserHelper.CurrentUser.UserName; | |
var email = UserHelper.CurrentUser.Email; | |
string timems = (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds.ToString(); | |
var hash = GetHash(key, username, email, timems); |