|
|
@ -84,7 +84,6 @@ namespace Ombi.Controllers.V1
|
|
|
|
var url = await _plexOAuthManager.GetOAuthUrl(model.PlexTvPin.code, websiteAddress);
|
|
|
|
var url = await _plexOAuthManager.GetOAuthUrl(model.PlexTvPin.code, websiteAddress);
|
|
|
|
if (url == null)
|
|
|
|
if (url == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_log.LogWarning(string.Format("Failed login attempt by IP: {0}", GetRequestIP()));
|
|
|
|
|
|
|
|
return new JsonResult(new
|
|
|
|
return new JsonResult(new
|
|
|
|
{
|
|
|
|
{
|
|
|
|
error = "Application URL has not been set"
|
|
|
|
error = "Application URL has not been set"
|
|
|
@ -276,4 +275,4 @@ namespace Ombi.Controllers.V1
|
|
|
|
return ip;
|
|
|
|
return ip;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|