mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 01:32:55 -07:00
FIXED!!!!! YES BITCH! #550
This commit is contained in:
parent
3e5e188e2c
commit
c0e6030ba3
3 changed files with 14 additions and 6 deletions
|
@ -64,9 +64,12 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
var redirectPath = string.IsNullOrEmpty(baseUrl) ? "~/userlogin" : $"~/{baseUrl}/userlogin";
|
||||
|
||||
return Session[SessionKeys.UsernameKey] == null
|
||||
? Context.GetRedirect(redirectPath)
|
||||
: null;
|
||||
if (Session[SessionKeys.UsernameKey] == null && Context?.CurrentUser == null)
|
||||
{
|
||||
return Context.GetRedirect(redirectPath);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,8 +65,8 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
if (!string.IsNullOrEmpty(Username) || IsAdmin)
|
||||
{
|
||||
var uri = Linker.BuildRelativeUri(Context, "SearchIndex");
|
||||
return Response.AsRedirect(uri.ToString());
|
||||
var url = Linker.BuildAbsoluteUri(Context, "SearchIndex").ToString();
|
||||
return Response.AsRedirect(url);
|
||||
}
|
||||
var settings = await AuthService.GetSettingsAsync();
|
||||
return View["Index", settings];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue