Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services.Configure<IdentityOptions>(options =>
- {
- // Password settings
- options.Password.RequireDigit = true;
- options.Password.RequiredLength = 8;
- options.Password.RequireNonAlphanumeric = false;
- options.Password.RequireUppercase = true;
- options.Password.RequireLowercase = false;
- // Lockout settings
- options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromMinutes(30);
- options.Lockout.MaxFailedAccessAttempts = 10;
- // Cookie settings
- options.Cookies.ApplicationCookie.ExpireTimeSpan = TimeSpan.FromDays(150);
- options.Cookies.ApplicationCookie.LoginPath = "/Account/LogIn";
- options.Cookies.ApplicationCookie.LogoutPath = "/Account/LogOff";
- // User settings
- options.User.RequireUniqueEmail = true;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement