Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e677e7

Browse files
Updated password policy
1 parent e73f7b4 commit 9e677e7

File tree

1 file changed

+10
-0
lines changed
  • Webgentle.BookStore/Webgentle.BookStore

1 file changed

+10
-0
lines changed

‎Webgentle.BookStore/Webgentle.BookStore/Startup.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ public void ConfigureServices(IServiceCollection services)
3737
services.AddIdentity<ApplicationUser, IdentityRole>()
3838
.AddEntityFrameworkStores<BookStoreContext>();
3939

40+
services.Configure<IdentityOptions>(options =>
41+
{
42+
options.Password.RequiredLength = 5;
43+
options.Password.RequiredUniqueChars = 1;
44+
options.Password.RequireDigit = false;
45+
options.Password.RequireLowercase = false;
46+
options.Password.RequireNonAlphanumeric = false;
47+
options.Password.RequireUppercase = false;
48+
});
49+
4050
services.AddControllersWithViews();
4151
#if DEBUG
4252
services.AddRazorPages().AddRazorRuntimeCompilation();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /