#20 Only continue after login dialog if "ok" is the dialog result.

This commit is contained in:
Serraniel 2019-01-30 20:54:07 +01:00
parent b05e7e3965
commit d90457b6e3
Signed by untrusted user who does not match committer: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -193,7 +193,7 @@ namespace DML.Application.Classes
}
}
catch (HttpException e)
catch (HttpException)
{
Logger.Warn("HTTPException occured during login. Probably from login token.");
}
@ -202,7 +202,10 @@ namespace DML.Application.Classes
{
Logger.Debug("Showing dialog for username and password...");
var loginDlg = new LoginDialog();
loginDlg.ShowDialog();
if (loginDlg.ShowDialog() != DialogResult.OK)
{
return;
}
}
}