mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
parent
33398084be
commit
5c023341b6
8 changed files with 49 additions and 11 deletions
|
@ -228,6 +228,20 @@ namespace PlexRequests.UI.Modules
|
|||
loginGuid = Guid.Parse(dbUser.UserGuid);
|
||||
}
|
||||
|
||||
if (loginGuid != Guid.Empty)
|
||||
{
|
||||
if (!settings.UserAuthentication)// Do not need to auth make admin use login screen for now TODO remove this
|
||||
{
|
||||
var perms = (Permissions)dbUser.Permissions;
|
||||
if (perms.HasFlag(Permissions.Administrator))
|
||||
{
|
||||
var uri = Linker.BuildRelativeUri(Context, "UserLoginIndex");
|
||||
Session["TempMessage"] = Resources.UI.UserLogin_AdminUsePassword;
|
||||
return Response.AsRedirect(uri.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(loginGuid == Guid.Empty && settings.UserAuthentication)
|
||||
{
|
||||
var defaultSettings = UserManagementSettings.GetSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue