Skip to content

Commit

Permalink
resolved #414: Upgraded to ABP v4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ismcagdas committed Feb 26, 2019
1 parent 57f14ea commit 92f8bf5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Abp.AutoMapper" Version="4.2.0" />
<PackageReference Include="Abp.ZeroCore.EntityFrameworkCore" Version="4.2.0" />
<PackageReference Include="Abp.AutoMapper" Version="4.3.0" />
<PackageReference Include="Abp.ZeroCore.EntityFrameworkCore" Version="4.3.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="2.2.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Abp.Castle.Log4Net" Version="4.2.0" />
<PackageReference Include="Abp.Castle.Log4Net" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.2.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="3.0.0" />
<PackageReference Include="Abp.AspNetCore" Version="4.2.0" />
<PackageReference Include="Abp.ZeroCore" Version="4.2.0" />
<PackageReference Include="Abp.AspNetCore" Version="4.3.0" />
<PackageReference Include="Abp.ZeroCore" Version="4.3.0" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Abp.AspNetCore.SignalR" Version="4.2.0" />
<PackageReference Include="Abp.AspNetCore.SignalR" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.2.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Abp.Castle.Log4Net" Version="4.2.0" />
<PackageReference Include="Abp.Castle.Log4Net" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="2.2.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Abp.HangFire" Version="4.2.0" />
<PackageReference Include="Abp.RedisCache" Version="4.2.0" />
<PackageReference Include="Abp.Castle.Log4Net" Version="4.2.0" />
<PackageReference Include="Abp.HangFire" Version="4.3.0" />
<PackageReference Include="Abp.RedisCache" Version="4.3.0" />
<PackageReference Include="Abp.Castle.Log4Net" Version="4.3.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version="2.2.0" PrivateAssets="All" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Abp.Extensions;
using Abp.MultiTenancy;
using Abp.Notifications;
using Abp.Runtime.Session;
using Abp.Threading;
using Abp.Timing;
using Abp.UI;
Expand Down Expand Up @@ -114,7 +115,6 @@ public async Task<ActionResult> Logout()
return RedirectToAction("Login");
}


private async Task<AbpLoginResult<Tenant, User>> GetLoginResultAsync(string usernameOrEmailAddress, string password, string tenancyName)
{
var loginResult = await _logInManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);
Expand Down Expand Up @@ -195,7 +195,7 @@ public async Task<ActionResult> Register(RegisterViewModel model)
if (model.IsExternalLogin)
{
Debug.Assert(externalLoginInfo != null);

if (string.Equals(externalLoginInfo.Principal.FindFirstValue(ClaimTypes.Email), model.EmailAddress, StringComparison.OrdinalIgnoreCase))
{
user.IsEmailConfirmed = true;
Expand Down Expand Up @@ -290,7 +290,7 @@ public ActionResult ExternalLogin(string provider, string returnUrl)
public virtual async Task<ActionResult> ExternalLoginCallback(string returnUrl, string remoteError = null)
{
returnUrl = NormalizeReturnUrl(returnUrl);

if (remoteError != null)
{
Logger.Error("Remote Error in ExternalLoginCallback: " + remoteError);
Expand Down Expand Up @@ -436,7 +436,7 @@ private string NormalizeReturnUrl(string returnUrl, Func<string> defaultValueBui
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
[AbpMvcAuthorize]
[AbpMvcAuthorize]
public async Task<ActionResult> TestNotification(string message = "")
{
if (message.IsNullOrEmpty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Abp.TestBase" Version="4.2.0" />
<PackageReference Include="Abp.TestBase" Version="4.3.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="2.2.1" />
<PackageReference Include="Castle.Core" Version="4.3.1" />
</ItemGroup>
Expand Down

0 comments on commit 92f8bf5

Please sign in to comment.