usability
This commit is contained in:
parent
a5d57893c4
commit
19f1084d5f
3 changed files with 27 additions and 5 deletions
|
@ -570,13 +570,17 @@ namespace Sledgemapper
|
|||
|
||||
if (!isValid)
|
||||
{
|
||||
localContent.LblLoginError.Text="Username or password is not valid";
|
||||
localContent.LblLoginError.Visible=true;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var successful = false;
|
||||
try
|
||||
{
|
||||
|
||||
localContent.LblLoginError.Text="";
|
||||
localContent.LblLoginError.Visible=false;
|
||||
_authResponse = await _communicationManager.Login(new AuthenticateModel
|
||||
{
|
||||
Username = localContent.TxtEmail.Text,
|
||||
|
@ -587,6 +591,8 @@ namespace Sledgemapper
|
|||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
localContent.LblLoginError.Text=ex.Message;
|
||||
localContent.LblLoginError.Visible=true;
|
||||
}
|
||||
|
||||
if (successful)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue