Browse Source

Update Logout.cshtml.cs

pull/15792/head
maliming 4 years ago
parent
commit
ee3c2bcbf6
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 5
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Logout.cshtml.cs

5
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Logout.cshtml.cs

@ -1,6 +1,8 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Account.Settings;
using Volo.Abp.Identity;
using Volo.Abp.Settings;
namespace Volo.Abp.Account.Web.Pages.Account;
@ -28,8 +30,7 @@ public class LogoutModel : AccountPageModel
return RedirectSafely(ReturnUrl, ReturnUrlHash);
}
var enableLocalLogin = await SettingProvider.IsTrueAsync(AccountSettingNames.EnableLocalLogin);
if (enableLocalLogin)
if (await SettingProvider.IsTrueAsync(AccountSettingNames.EnableLocalLogin))
{
return RedirectToPage("/Account/Login");
}

Loading…
Cancel
Save