Browse Source

If local login disabled go to home page

pull/15792/head
Lee Richardson 4 years ago
parent
commit
19ec492121
  1. 8
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Logout.cshtml.cs

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

@ -28,7 +28,13 @@ public class LogoutModel : AccountPageModel
return RedirectSafely(ReturnUrl, ReturnUrlHash);
}
return RedirectToPage("/Account/Login");
var enableLocalLogin = await SettingProvider.IsTrueAsync(AccountSettingNames.EnableLocalLogin);
if (enableLocalLogin)
{
return RedirectToPage("/Account/Login");
}
return RedirectToPage("/");
}
public virtual Task<IActionResult> OnPostAsync()

Loading…
Cancel
Save