Browse Source
fix bad redirection (#608)
* fix bad redirection
fix cleanning of local storage on startup
* update all nuget package
* avoid magic string
main
Cédric Michel
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
11 additions and
9 deletions
-
src/ApplicationCore/ApplicationCore.csproj
-
src/BlazorAdmin/Program.cs
-
src/Infrastructure/Infrastructure.csproj
-
src/PublicApi/PublicApi.csproj
-
src/Web/Controllers/ManageController.cs
-
src/Web/Web.csproj
|
|
@ -6,7 +6,7 @@ |
|
|
</PropertyGroup> |
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
|
<ItemGroup> |
|
|
<ItemGroup> |
|
|
<PackageReference Include="Ardalis.GuardClauses" Version="3.2.0" /> |
|
|
<PackageReference Include="Ardalis.GuardClauses" Version="3.3.0" /> |
|
|
<PackageReference Include="Ardalis.Specification" Version="5.2.0" /> |
|
|
<PackageReference Include="Ardalis.Specification" Version="5.2.0" /> |
|
|
<PackageReference Include="MediatR" Version="9.0.0" /> |
|
|
<PackageReference Include="MediatR" Version="9.0.0" /> |
|
|
<PackageReference Include="System.Security.Claims" Version="4.3.0" /> |
|
|
<PackageReference Include="System.Security.Claims" Version="4.3.0" /> |
|
|
|
|
|
@ -1,6 +1,7 @@ |
|
|
using BlazorAdmin.Services; |
|
|
using BlazorAdmin.Services; |
|
|
using Blazored.LocalStorage; |
|
|
using Blazored.LocalStorage; |
|
|
using BlazorShared; |
|
|
using BlazorShared; |
|
|
|
|
|
using BlazorShared.Models; |
|
|
using Microsoft.AspNetCore.Components.Authorization; |
|
|
using Microsoft.AspNetCore.Components.Authorization; |
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; |
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; |
|
|
using Microsoft.Extensions.Configuration; |
|
|
using Microsoft.Extensions.Configuration; |
|
|
@ -48,7 +49,8 @@ namespace BlazorAdmin |
|
|
var sp = services.BuildServiceProvider(); |
|
|
var sp = services.BuildServiceProvider(); |
|
|
var localStorageService = sp.GetRequiredService<ILocalStorageService>(); |
|
|
var localStorageService = sp.GetRequiredService<ILocalStorageService>(); |
|
|
|
|
|
|
|
|
await localStorageService.RemoveItemAsync("brands"); |
|
|
await localStorageService.RemoveItemAsync(typeof(CatalogBrand).Name); |
|
|
|
|
|
await localStorageService.RemoveItemAsync(typeof(CatalogType).Name); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
@ -9,7 +9,7 @@ |
|
|
<PackageReference Include="Ardalis.Specification.EntityFrameworkCore" Version="5.2.0" /> |
|
|
<PackageReference Include="Ardalis.Specification.EntityFrameworkCore" Version="5.2.0" /> |
|
|
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.11" /> |
|
|
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.11" /> |
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.11" /> |
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.11" /> |
|
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.13.1" /> |
|
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.14.0" /> |
|
|
</ItemGroup> |
|
|
</ItemGroup> |
|
|
<ItemGroup> |
|
|
<ItemGroup> |
|
|
<ProjectReference Include="..\ApplicationCore\ApplicationCore.csproj" /> |
|
|
<ProjectReference Include="..\ApplicationCore\ApplicationCore.csproj" /> |
|
|
|
|
|
@ -29,7 +29,7 @@ |
|
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.11.1" /> |
|
|
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.11.1" /> |
|
|
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.2" /> |
|
|
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.2" /> |
|
|
|
|
|
|
|
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.13.1" /> |
|
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.14.0" /> |
|
|
</ItemGroup> |
|
|
</ItemGroup> |
|
|
|
|
|
|
|
|
<ItemGroup> |
|
|
<ItemGroup> |
|
|
|
|
|
@ -125,7 +125,7 @@ namespace Microsoft.eShopWeb.Web.Controllers |
|
|
await _emailSender.SendEmailConfirmationAsync(email, callbackUrl); |
|
|
await _emailSender.SendEmailConfirmationAsync(email, callbackUrl); |
|
|
|
|
|
|
|
|
StatusMessage = "Verification email sent. Please check your email."; |
|
|
StatusMessage = "Verification email sent. Please check your email."; |
|
|
return RedirectToAction(nameof(Index)); |
|
|
return RedirectToAction(nameof(MyAccount)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
|
|
|
@ -42,7 +42,7 @@ |
|
|
<PrivateAssets>all</PrivateAssets> |
|
|
<PrivateAssets>all</PrivateAssets> |
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
|
|
</PackageReference> |
|
|
</PackageReference> |
|
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.13.1" /> |
|
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.14.0" /> |
|
|
</ItemGroup> |
|
|
</ItemGroup> |
|
|
<ItemGroup> |
|
|
<ItemGroup> |
|
|
<Folder Include="wwwroot\fonts\" /> |
|
|
<Folder Include="wwwroot\fonts\" /> |
|
|
|