aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/InvalidAuthProvider.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-08-10 21:42:46 -0400
committerGitHub <noreply@github.com>2019-08-10 21:42:46 -0400
commita96fa7a5c705d8b694c828ff451a77d60711d329 (patch)
tree0bfcdd9166036bdb9d52686ad29bb255ed9e8801 /Emby.Server.Implementations/Library/InvalidAuthProvider.cs
parent5c366e46975d7d541ecacedc0a80b1d269fde007 (diff)
parent0f897589ed6349bb3c88919b06861daa80aec1be (diff)
Merge pull request #1397 from Bond-009/passfast
Streamline authentication proccess
Diffstat (limited to 'Emby.Server.Implementations/Library/InvalidAuthProvider.cs')
-rw-r--r--Emby.Server.Implementations/Library/InvalidAuthProvider.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Library/InvalidAuthProvider.cs b/Emby.Server.Implementations/Library/InvalidAuthProvider.cs
index 25d233137..6956369dc 100644
--- a/Emby.Server.Implementations/Library/InvalidAuthProvider.cs
+++ b/Emby.Server.Implementations/Library/InvalidAuthProvider.cs
@@ -1,6 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
using System.Threading.Tasks;
using MediaBrowser.Controller.Authentication;
using MediaBrowser.Controller.Entities;
@@ -16,12 +13,12 @@ namespace Emby.Server.Implementations.Library
public Task<ProviderAuthenticationResult> Authenticate(string username, string password)
{
- throw new SecurityException("User Account cannot login with this provider. The Normal provider for this user cannot be found");
+ throw new AuthenticationException("User Account cannot login with this provider. The Normal provider for this user cannot be found");
}
- public Task<bool> HasPassword(User user)
+ public bool HasPassword(User user)
{
- return Task.FromResult(true);
+ return true;
}
public Task ChangePassword(User user, string newPassword)
@@ -31,7 +28,7 @@ namespace Emby.Server.Implementations.Library
public void ChangeEasyPassword(User user, string newPassword, string newPasswordHash)
{
- // Nothing here
+ // Nothing here
}
public string GetPasswordHash(User user)