diff --git a/Logic/Security/Authentication.cs b/Logic/Security/Authentication.cs index 1c12b9e4..bdf43e3b 100644 --- a/Logic/Security/Authentication.cs +++ b/Logic/Security/Authentication.cs @@ -192,6 +192,8 @@ namespace Swarmops.Logic.Security /// A list of previously valid password hashes. private static string[] GenerateLegacyPasswordHashes (Person person, string password) { +// Calling Obsolete Property is valid here since we are generationg legacy hashes. +#pragma warning disable 618 if (person.PersonalNumber.Length > 0) { return new[] @@ -205,6 +207,7 @@ namespace Swarmops.Logic.Security { SHA1.Hash(password + person.Identity + "Pirate") }; +#pragma warning restore 618 } diff --git a/Logic/Swarm/AuditedPerson.cs b/Logic/Swarm/AuditedPerson.cs index 9fe28074..5c6202a3 100644 --- a/Logic/Swarm/AuditedPerson.cs +++ b/Logic/Swarm/AuditedPerson.cs @@ -200,7 +200,7 @@ namespace Swarmops.Logic.Swarm } } - + [Obsolete("Use NationalIdNumber instead")] public virtual string PersonalNumber { get { return person.PersonalNumber; }