aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2018-06-25 13:53:15 +0300
committerAvi Levkovich <avi@twine-s.com>2018-06-25 13:53:15 +0300
commitc95a8fbe2746db2c1ef73a2c373004b322bdb5bf (patch)
tree410bcca9da486af969d6d4afb142512e3b88c2fc /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs
parentc68262a29c29d0785337b5982e91ebf741e98b0f (diff)
parenta27ef72084d844ef703aaa9b1c6f4ec032ca182e (diff)
downloadTango-c95a8fbe2746db2c1ef73a2c373004b322bdb5bf.tar.gz
Tango-c95a8fbe2746db2c1ef73a2c373004b322bdb5bf.zip
merge
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs
index 2fcf55d27..4e5425138 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Authentication/DefaultAuthenticationProvider.cs
@@ -48,7 +48,9 @@ namespace Tango.MachineStudio.UI.Authentication
/// <exception cref="AuthenticationException">Login failed for user " + email</exception>
public User Login(string email, string password)
{
- User user = ObservablesEntitiesAdapter.Instance.Users.SingleOrDefault(x => x.Email.ToLower() == email.ToLower() && x.Password == password);
+ String hash = User.GetPasswordHash(password);
+
+ User user = ObservablesEntitiesAdapter.Instance.Users.SingleOrDefault(x => x.Email.ToLower() == email.ToLower() && x.Password == hash);
if (user == null)
{