aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-20 20:33:05 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-20 20:33:05 -0500
commit767cdc1f6f6a63ce997fc9476911e2c361f9d402 (patch)
tree49add55976f895441167c66cfa95e5c7688d18ce /MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs
parent845554722efaed872948a9e0f7202e3ef52f1b6e (diff)
Pushing missing changes
Diffstat (limited to 'MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs')
-rw-r--r--MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs29
1 files changed, 0 insertions, 29 deletions
diff --git a/MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs b/MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs
deleted file mode 100644
index fa9d97598..000000000
--- a/MediaBrowser.Api/HttpHandlers/UserAuthenticationHandler.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using MediaBrowser.Common.Net.Handlers;
-using MediaBrowser.Controller;
-using MediaBrowser.Controller.Entities;
-using MediaBrowser.Model.Authentication;
-using System.ComponentModel.Composition;
-using System.Net;
-using System.Threading.Tasks;
-
-namespace MediaBrowser.Api.HttpHandlers
-{
- [Export(typeof(BaseHandler))]
- class UserAuthenticationHandler : BaseSerializationHandler<AuthenticationResult>
- {
- public override bool HandlesRequest(HttpListenerRequest request)
- {
- return ApiService.IsApiUrlMatch("UserAuthentication", request);
- }
-
- protected override async Task<AuthenticationResult> GetObjectToSerialize()
- {
- string userId = await GetFormValue("userid").ConfigureAwait(false);
- User user = ApiService.GetUserById(userId, false);
-
- string password = await GetFormValue("password").ConfigureAwait(false);
-
- return Kernel.Instance.AuthenticateUser(user, password);
- }
- }
-}