From 0eca640aa38c5697739f66d1b3e565d46e615b78 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 19 Jun 2018 17:08:43 +0300 Subject: Improved Keyboard View. Applies TouchPanel to PPC. Implemented LoginView for PPC. --- .../Authentication/DefaultAuthenticationProvider.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Authentication') 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 /// The email. /// The password. /// - public Task 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; } /// -- cgit v1.3.1