Beispiel #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));
        }
Beispiel #2
0
        private User CreateUserWithTempFlag(string email, string password, bool temp)
        {
            var user = new User
            {
                Email        = email,
                PasswordHash = _hash.CreateMD5Hash(password),
                ApiToken     = _hash.CreateApiToken(email, password),
                Temp         = temp
            };

            return(user);
        }