Skip to content

Commit

Permalink
Fixed major typo in IAuthenticationService :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigraine committed Oct 25, 2009
1 parent d4b395a commit ed57096
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/ELMSConnector/Commands/VerifyUserCommand.cs
Expand Up @@ -18,12 +18,12 @@ namespace ElmsConnector.Commands

public class VerifyUserCommand : AbstractCommandBase
{
private readonly IAuthenticatonService authenticatonService;
private readonly IAuthenticationService authenticationService;
private readonly IElmsSessionRequestService elmsSessionRequestService;

public VerifyUserCommand(IAuthenticatonService service, IElmsSessionRequestService elmsSessionRequestService)
public VerifyUserCommand(IAuthenticationService service, IElmsSessionRequestService elmsSessionRequestService)
{
authenticatonService = service;
authenticationService = service;
this.elmsSessionRequestService = elmsSessionRequestService;
}

Expand All @@ -32,7 +32,7 @@ public override void Execute()
var username = Request["username"];
var password = Request["password"];

bool loginResult = authenticatonService.AuthenticateUser(username, password);
bool loginResult = authenticationService.AuthenticateUser(username, password);
var token = (string) Session["token"];
var returnUrl = (string) Session["returnUrl"];
if (loginResult)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ELMSConnector/Services/FakeAuthenticatonService.cs
Expand Up @@ -14,7 +14,7 @@

namespace ElmsConnector.Services
{
public class FakeAuthenticatonService : IAuthenticatonService
public class FakeAuthenticatonService : IAuthenticationService
{
public bool AuthenticateUser(string username, string password)
{
Expand Down
2 changes: 1 addition & 1 deletion src/ELMSConnector/Services/LdapAuthenticationService.cs
Expand Up @@ -18,7 +18,7 @@ namespace ElmsConnector.Services
using System.DirectoryServices;
using Castle.Core.Logging;

public class LdapAuthenticationService : IAuthenticatonService
public class LdapAuthenticationService : IAuthenticationService
{
private readonly string _domain;
private readonly string _ldapPath;
Expand Down
12 changes: 11 additions & 1 deletion src/ElmsConnector.Web/FakeAuthenticatonService.cs
Expand Up @@ -14,11 +14,21 @@

namespace ElmsConnector.Web
{
public class FakeAuthenticatonService : IAuthenticatonService
public class FakeAuthenticatonService : ISessionAuthenticationService
{
public bool AuthenticateUser(string username, string password)
{
return true;
}

public bool IsAlreadyAuthenticated()
{
return true;
}

public string Username
{
get { return "Tig"; }
}
}
}

0 comments on commit ed57096

Please sign in to comment.