Пример #1
0
        //public string ActivationToken { get; set; }

        //public string PasswordAnswer { get; set; }

        //public string PasswordQuestion { get; set; }

        #endregion

        #region methods

        public async Task <ClaimsIdentity> GenerateUserIdentityAsync(MyUserManager userManager)
        {
            var userIdentity = await userManager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);

            // Add custom user claims here
            return(userIdentity);
        }
Пример #2
0
        public async Task <ClaimsIdentity> GenerateUserIdentityAsync(MyUserManager manager, string authenticationType)
        {
            // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
            var userIdentity = await manager.CreateIdentityAsync(this, authenticationType);

            // Add custom user claims here
            return(userIdentity);
        }