aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-06-09 13:45:51 -0400
committerJoshua M. Boniface <joshua@boniface.me>2019-06-09 13:45:51 -0400
commit20e2cb2d8693e3f53749bcde5b5fd6367bd15007 (patch)
treea0cd80f86f6549bfcf843f26a9611562facb56ba /Emby.Server.Implementations
parentb70083f3b370055b2942e450291ce42345732cb7 (diff)
Use SecurityException for auth failure
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/Library/InvalidAuthProvider.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/InvalidAuthProvider.cs b/Emby.Server.Implementations/Library/InvalidAuthProvider.cs
index 133864708..25d233137 100644
--- a/Emby.Server.Implementations/Library/InvalidAuthProvider.cs
+++ b/Emby.Server.Implementations/Library/InvalidAuthProvider.cs
@@ -4,6 +4,7 @@ using System.Text;
using System.Threading.Tasks;
using MediaBrowser.Controller.Authentication;
using MediaBrowser.Controller.Entities;
+using MediaBrowser.Controller.Net;
namespace Emby.Server.Implementations.Library
{
@@ -15,7 +16,7 @@ namespace Emby.Server.Implementations.Library
public Task<ProviderAuthenticationResult> Authenticate(string username, string password)
{
- throw new Exception("User Account cannot login with this provider. The Normal provider for this user cannot be found");
+ throw new SecurityException("User Account cannot login with this provider. The Normal provider for this user cannot be found");
}
public Task<bool> HasPassword(User user)