Problem solved, so removing debug logging
This commit is contained in:
@@ -29,15 +29,11 @@ namespace Swarmops.Logic.Security
|
||||
/// </exception>
|
||||
public static Person Authenticate (string loginToken, string password)
|
||||
{
|
||||
SwarmopsLog.DebugLog(string.Format("Authenticating '{0}'", loginToken, password));
|
||||
|
||||
// Get the list of people that match the login token.
|
||||
|
||||
People candidatePeople = GetPeopleByLoginToken (loginToken);
|
||||
Person authenticatedUser = null;
|
||||
|
||||
SwarmopsLog.DebugLog ("- candidate count: " + candidatePeople.Count);
|
||||
|
||||
// For every person in the list, test the supplied password against the current and legacy hash schemes.
|
||||
|
||||
foreach (Person candidate in candidatePeople)
|
||||
@@ -52,8 +48,6 @@ namespace Swarmops.Logic.Security
|
||||
{
|
||||
if (membership.Active)
|
||||
{
|
||||
SwarmopsLog.DebugLog ("- candidate #" + candidate.Identity + " has a valid participation");
|
||||
|
||||
hasActiveMemberships = true;
|
||||
break;
|
||||
}
|
||||
@@ -63,7 +57,6 @@ namespace Swarmops.Logic.Security
|
||||
|
||||
if (!hasActiveMemberships)
|
||||
{
|
||||
SwarmopsLog.DebugLog("- candidate #" + candidate.Identity + " has NO valid participations");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -793,11 +793,7 @@ namespace Swarmops.Logic.Swarm
|
||||
|
||||
public Participation AddParticipation (Organization organization, DateTime expires)
|
||||
{
|
||||
SwarmopsLog.DebugLog (string.Format("- adding participation in {0} until {1:yyyy-MM-dd HH:mm:ss}", organization.Name, expires));
|
||||
|
||||
Participation participation = AddParticipation (organization.Identity, expires);
|
||||
|
||||
SwarmopsLog.DebugLog ("- created participation #" + (participation != null? participation.Identity.ToString() : "null"));
|
||||
return participation;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user