示例#1
0
        private AtsUserReference CreateVerificationKeyReference(AtsUser user, bool original = false)
        {
            var value = original ? user.OriginalVerificationKey : user.VerificationKey;

            if (String.IsNullOrEmpty(value))
            {
                return(null);
            }

            var referenceKey = AtsUserReferenceKey.ForVerificationKey(value);

            return(new AtsUserReference(referenceKey, user.ID)
            {
                ETag = "*"
            });
        }
示例#2
0
        public AtsUser GetByVerificationKey(string key)
        {
            var referenceKey = AtsUserReferenceKey.ForVerificationKey(key);

            return(this.GetUserByReference(referenceKey));
        }