摘要:
此部分可以在 Web项目中的App_Start目录下的 IdentityConfig.cs 文件进行设置。 1、配置密码的验证逻辑 manager.PasswordValidator = new PasswordValidator { RequiredLength = 8,// 要求的密码长度,默认为6 RequireNonLetterOrDigit ... 阅读全文
posted @ 2016-03-04 21:38
海边的沙
阅读(449)
评论(0)
推荐(0)
摘要:
using Microsoft.AspNet.Identity; public ActionResult AddRole(String name){ using (var roleManager = new RoleManager<IdentityRole>(new RoleStore<Identi 阅读全文
posted @ 2016-03-04 14:23
海边的沙
阅读(2091)
评论(0)
推荐(0)