mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 07:22:35 -07:00
fixed #703
This commit is contained in:
parent
eadcba91c4
commit
7a41aef838
5 changed files with 40 additions and 11 deletions
|
@ -62,12 +62,14 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
return Context.GetRedirect(string.IsNullOrEmpty(baseUrl) ? "~/wizard" : $"~/{baseUrl}/wizard");
|
||||
}
|
||||
|
||||
var redirectPath = string.IsNullOrEmpty(baseUrl) ? "~/userlogin" : $"~/{baseUrl}/userlogin";
|
||||
|
||||
if (Session[SessionKeys.UsernameKey] == null && Context?.CurrentUser == null)
|
||||
if (!Request.IsAjaxRequest())
|
||||
{
|
||||
return Context.GetRedirect(redirectPath);
|
||||
var redirectPath = string.IsNullOrEmpty(baseUrl) ? "~/userlogin" : $"~/{baseUrl}/userlogin";
|
||||
|
||||
if (Session[SessionKeys.UsernameKey] == null && Context?.CurrentUser == null)
|
||||
{
|
||||
return Context.GetRedirect(redirectPath);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue