Exemple #1
0
        public string CreateShareLink(string email)
        {
            var pathToShare = _pathHelper.VirtualToAbsolute("~/user/share");
            var shareKey    = _hashService.CreateMD5Hash(CreateShareKey(email));

            return(string.Format(@"{0}/{1}?key={2}", pathToShare, email, shareKey));
        }
Exemple #2
0
        public ActionResult Index(string email)
        {
            var user = _users.Users.WithEmail(email);

            ViewData["Api"]      = _path.VirtualToAbsolute("~/API/v1.1/");
            ViewData["Email"]    = email;
            ViewData["ApiToken"] = user.ApiToken;

            return(View());
        }