diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-21 21:29:06 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-21 21:29:06 -0400 |
| commit | c524f3919ef019092d3bcfa246870bc3f16070c5 (patch) | |
| tree | dc90081f8854340b275ce4e40cccaa7ff14e9847 /MediaBrowser.Server.Implementations/Library/UserManager.cs | |
| parent | ce20066bc0e2c7ba1634200cdee6ac339d4dfb60 (diff) | |
added cloud sync model objects
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/UserManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/UserManager.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/UserManager.cs b/MediaBrowser.Server.Implementations/Library/UserManager.cs index 1e0bbc39b..dbe020908 100644 --- a/MediaBrowser.Server.Implementations/Library/UserManager.cs +++ b/MediaBrowser.Server.Implementations/Library/UserManager.cs @@ -17,6 +17,7 @@ using System.Security.Cryptography; using System.Text; using System.Threading; using System.Threading.Tasks; +using MediaBrowser.Server.Implementations.Security; namespace MediaBrowser.Server.Implementations.Library { @@ -137,7 +138,7 @@ namespace MediaBrowser.Server.Implementations.Library if (user.Configuration.IsDisabled) { - throw new UnauthorizedAccessException(string.Format("The {0} account is currently disabled. Please consult with your administrator.", user.Name)); + throw new AuthenticationException(string.Format("The {0} account is currently disabled. Please consult with your administrator.", user.Name)); } var existingPasswordString = string.IsNullOrEmpty(user.Password) ? GetSha1String(string.Empty) : user.Password; |
