aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-24 09:49:45 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-24 09:49:45 +0300
commit5095a1dd5f65a7659083cae6dfccb34007720ee9 (patch)
tree62b46d5b437c0d9236827ec46357dd1b1b18c946 /Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs
parent121c706c24da22e48b0e4d4dacc7ade8fef757bb (diff)
parentc6b1a719bac638a647dc2e4af51ad888c9f5039d (diff)
downloadTango-5095a1dd5f65a7659083cae6dfccb34007720ee9.tar.gz
Tango-5095a1dd5f65a7659083cae6dfccb34007720ee9.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs
index e78eef13d..a259e303a 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs
@@ -44,7 +44,8 @@ namespace Tango.PPC.UI.Authentication
/// <returns></returns>
public User Login(string email, string password)
{
- CurrentUser = ObservablesEntitiesAdapter.Instance.Users.SingleOrDefault(x => x.Email.ToLower() == email && x.Password == password);
+ String hash = User.GetPasswordHash(password);
+ CurrentUser = ObservablesEntitiesAdapter.Instance.Users.SingleOrDefault(x => x.Email.ToLower() == email && x.Password == hash);
CurrentUserChanged?.Invoke(this, CurrentUser);
return CurrentUser;
}