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-19 17:08:43 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-19 17:08:43 +0300
commit0eca640aa38c5697739f66d1b3e565d46e615b78 (patch)
treeec68e302b44ed4f2e624b49caf0d3977a60a867c /Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs
parent1db87b6d19c6148351b37a32e8ff2b127768e945 (diff)
downloadTango-0eca640aa38c5697739f66d1b3e565d46e615b78.tar.gz
Tango-0eca640aa38c5697739f66d1b3e565d46e615b78.zip
Improved Keyboard View.
Applies TouchPanel to PPC. Implemented LoginView for PPC.
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.cs11
1 files changed, 4 insertions, 7 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 53a37c7f5..e78eef13d 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication/DefaultAuthenticationProvider.cs
@@ -42,14 +42,11 @@ namespace Tango.PPC.UI.Authentication
/// <param name="email">The email.</param>
/// <param name="password">The password.</param>
/// <returns></returns>
- public Task<User> Login(string email, string password)
+ public User Login(string email, string password)
{
- return Task.Factory.StartNew(() =>
- {
- CurrentUser = ObservablesEntitiesAdapter.Instance.Users.SingleOrDefault(x => x.Email.ToLower() == email && x.Password == password);
- CurrentUserChanged?.Invoke(this, CurrentUser);
- return CurrentUser;
- });
+ CurrentUser = ObservablesEntitiesAdapter.Instance.Users.SingleOrDefault(x => x.Email.ToLower() == email && x.Password == password);
+ CurrentUserChanged?.Invoke(this, CurrentUser);
+ return CurrentUser;
}
/// <summary>