This should be an errorfree build!
This commit is contained in:
@@ -192,6 +192,8 @@ namespace Swarmops.Logic.Security
|
||||
/// <returns>A list of previously valid password hashes.</returns>
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@ namespace Swarmops.Logic.Swarm
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Obsolete("Use NationalIdNumber instead")]
|
||||
public virtual string PersonalNumber
|
||||
{
|
||||
get { return person.PersonalNumber; }
|
||||
|
||||
Reference in New Issue
Block a user