From a4b75934e5a4737ba7721c33ad9a009060a8a246 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 14 Nov 2014 21:31:03 -0500 Subject: revise endpoint attributes --- MediaBrowser.Server.Implementations/Library/UserManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Library') diff --git a/MediaBrowser.Server.Implementations/Library/UserManager.cs b/MediaBrowser.Server.Implementations/Library/UserManager.cs index fa34a2c1f..803fbd454 100644 --- a/MediaBrowser.Server.Implementations/Library/UserManager.cs +++ b/MediaBrowser.Server.Implementations/Library/UserManager.cs @@ -8,6 +8,7 @@ using MediaBrowser.Controller.Drawing; using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Library; +using MediaBrowser.Controller.Net; using MediaBrowser.Controller.Persistence; using MediaBrowser.Controller.Providers; using MediaBrowser.Model.Configuration; @@ -180,12 +181,12 @@ namespace MediaBrowser.Server.Implementations.Library if (user == null) { - throw new AuthenticationException("Invalid username or password entered."); + throw new SecurityException("Invalid username or password entered."); } if (user.Configuration.IsDisabled) { - throw new AuthenticationException(string.Format("The {0} account is currently disabled. Please consult with your administrator.", user.Name)); + throw new SecurityException(string.Format("The {0} account is currently disabled. Please consult with your administrator.", user.Name)); } var success = false; -- cgit v1.2.3