From 2ada0a944b8b314d71094d7109d3cb67a9c31639 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 29 Jan 2015 12:18:16 +0100 Subject: [PATCH] one email => mail (many remain) --- Logic/Special/Sweden/SupportDatabase.cs | 2 +- Logic/Swarm/People.cs | 2 +- Site5/Security/RequestPasswordReset.aspx.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Logic/Special/Sweden/SupportDatabase.cs b/Logic/Special/Sweden/SupportDatabase.cs index d5c07ad6..89db74af 100644 --- a/Logic/Special/Sweden/SupportDatabase.cs +++ b/Logic/Special/Sweden/SupportDatabase.cs @@ -422,7 +422,7 @@ namespace Swarmops.Logic.Special.Sweden if (match.Success) { string email = match.Groups["email"].Value; - People people = People.FromEmail (email); + People people = People.FromMail (email); if (people.Count > 2) { diff --git a/Logic/Swarm/People.cs b/Logic/Swarm/People.cs index 793d8294..4d9689f4 100644 --- a/Logic/Swarm/People.cs +++ b/Logic/Swarm/People.cs @@ -135,7 +135,7 @@ namespace Swarmops.Logic.Swarm return null; // If no valid search string was supplied } - public static People FromEmail (string email) + public static People FromMail (string email) { if (email.Length > 0) { diff --git a/Site5/Security/RequestPasswordReset.aspx.cs b/Site5/Security/RequestPasswordReset.aspx.cs index c869c9d9..096b92bf 100644 --- a/Site5/Security/RequestPasswordReset.aspx.cs +++ b/Site5/Security/RequestPasswordReset.aspx.cs @@ -50,7 +50,7 @@ namespace Swarmops.Pages.Security return false; // this is the only case when we return false: a _syntactically_invalid_ address } - People concernedPeople = People.FromEmail (mailAddress); // Should result in exactly 1 + People concernedPeople = People.FromMail (mailAddress); // Should result in exactly 1 string resetTicket = SupportFunctions.GenerateSecureRandomKey (16); // 16 bytes = 128 bits random key, more than good enough