maliming
4 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
3 additions and
2 deletions
-
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"); |
|
|
|
} |
|
|
|
|