示例#1
0
文件: MyUser.cs 项目: qtsoft/QT_CTDT
        //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
文件: MyUser.cs 项目: qtsoft/QT_CTDT
        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);
        }