diff --git a/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Helpers/RemoteSystemHelper.cs b/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Helpers/RemoteSystemHelper.cs index 5aa498b..53b0970 100644 --- a/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Helpers/RemoteSystemHelper.cs +++ b/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Helpers/RemoteSystemHelper.cs @@ -24,9 +24,11 @@ public static DeviceType ConvertToDeviceType(string kind) default:return DeviceType.Unknown; } } + public static string GetStatusMessage(RemoteSystemStatus status,string uniqueId) { - if(status==RemoteSystemStatus.Available) + //TODO / TEMP : fix status (more statuses needed) + if(1==1)//(status==RemoteSystemStatus.Available) { if (DatabaseHelper.Exists(uniqueId)) return "Available".GetLocalized(); @@ -38,6 +40,8 @@ public static string GetStatusMessage(RemoteSystemStatus status,string uniqueId) return "Unavailable".GetLocalized(); } } + + public static async Task ExecuteCommand(RemoteSystem remoteSystem,Command comm) { if (remoteSystem != null) diff --git a/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Helpers/WindowsHelloHelper.cs b/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Helpers/WindowsHelloHelper.cs index 9d4c7d6..26ddbe9 100644 --- a/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Helpers/WindowsHelloHelper.cs +++ b/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Helpers/WindowsHelloHelper.cs @@ -37,7 +37,21 @@ public static async Task Auth() { if(await WindowsHelloAvailableCheckAsync()) { - UserConsentVerificationResult consentResult = await UserConsentVerifier.RequestVerificationAsync(""); + UserConsentVerificationResult consentResult = new UserConsentVerificationResult(); + + try + { + consentResult = await UserConsentVerifier.RequestVerificationAsync("Please verify"); + } + catch (Exception ex) + { + Debug.WriteLine("[ex] Exception : " + ex.Message); + await new MessageDialog("Verification failed (Device was not unlocked?)", "Failed").ShowAsync(); + + // TEMP + return false;// true; + } + if (consentResult != UserConsentVerificationResult.Verified) { return false; diff --git a/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Styles/TextBox.xaml b/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Styles/TextBox.xaml index 3c54cf4..20d5c21 100644 --- a/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Styles/TextBox.xaml +++ b/05 ProjectRet/ProjectRetMobile/ProjectRet.UWP/Styles/TextBox.xaml @@ -5,7 +5,8 @@