MOBILE BUGFIX-ek
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="WorkFlowCheck.MAUI.Pages.Security.LoginPage"
|
||||
xmlns:local="clr-namespace:WorkFlowCheck.MAUI.Pages"
|
||||
Title="Workflow Check Application (v1.1.018)"
|
||||
Title=""
|
||||
BackgroundColor="#f0f0f0">
|
||||
|
||||
<ContentView x:Name="LoginContent">
|
||||
|
||||
@@ -33,10 +33,9 @@ public partial class LoginPage : BasePage
|
||||
if (response != null && response.IsSuccess)
|
||||
{
|
||||
_userService.SetCurrentUser(response.Data);
|
||||
|
||||
SystemHelper.SystemUserDTO = response.Data;
|
||||
|
||||
//await _syncService.SyncDatas();
|
||||
|
||||
|
||||
var wFCUser = Newtonsoft.Json.JsonConvert.SerializeObject(response.Data);
|
||||
await SecureStorage.Default.SetAsync("WFCUser", "wFCUser");
|
||||
@@ -67,10 +66,27 @@ public partial class LoginPage : BasePage
|
||||
await snackbar.Show();
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
catch (Exception ex)
|
||||
{
|
||||
var visualOptions = new SnackbarOptions
|
||||
{
|
||||
ActionButtonTextColor = Colors.Yellow,
|
||||
CornerRadius = new CornerRadius(10),
|
||||
Font = Microsoft.Maui.Font.SystemFontOfSize(16),
|
||||
BackgroundColor = Microsoft.Maui.Graphics.Color.Parse("Red"),
|
||||
TextColor = Colors.Yellow
|
||||
|
||||
};
|
||||
var snackbar = Snackbar.Make(
|
||||
"Invalid login credentials.",
|
||||
duration: TimeSpan.FromSeconds(10),
|
||||
action: () => Console.WriteLine("Snackbar dismissed"),
|
||||
actionButtonText: "OK",
|
||||
visualOptions: visualOptions
|
||||
);
|
||||
|
||||
await snackbar.Show();
|
||||
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -101,8 +117,7 @@ public partial class LoginPage : BasePage
|
||||
if (response != null && response.IsSuccess)
|
||||
{
|
||||
_userService.SetCurrentUser(response.Data);
|
||||
|
||||
//await _syncService.SyncDatas();
|
||||
SystemHelper.SystemUserDTO = response.Data;
|
||||
|
||||
var wFCUser = Newtonsoft.Json.JsonConvert.SerializeObject(response.Data);
|
||||
await SecureStorage.Default.SetAsync("WFCUser", "wFCUser");
|
||||
|
||||
Reference in New Issue
Block a user