Skip to content

Commit

Permalink
chnages
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-atharva committed May 1, 2023
1 parent f7b1d61 commit 7c272ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/BlazorEcommerce.Identity/ConfigureServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ public static IServiceCollection AddIdentityServices(this IServiceCollection ser
services.AddDbContext<UserIdentityDbContext>(options =>
options.UseSqlServer(connectionString));

services.AddIdentity<ApplicationUser, IdentityRole>()
.AddEntityFrameworkStores<UserIdentityDbContext>().AddDefaultTokenProviders();
services.AddIdentity<ApplicationUser, IdentityRole>(opt =>
{
opt.Password.RequiredLength = 6;
opt.Password.RequireDigit = false;
opt.Password.RequireUppercase = false;
opt.User.RequireUniqueEmail = true;
})
.AddEntityFrameworkStores<UserIdentityDbContext>().AddDefaultTokenProviders();

services.AddAuthentication(options =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/Presentation/Client/Shared/NavMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">BlazorEcommerce</a>
<a class="navbar-brand" href="">Blazor Ecommerce</a>
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
</button>
Expand Down

0 comments on commit 7c272ff

Please sign in to comment.