Bugfix/#10 no reprompt on wrong login data #25

Merged
Serraniel merged 2 commits from bugfix/#10-no-reprompt-on-wrong-login-data into support/1.2 2019-01-30 20:55:34 +01:00

View file

@ -183,17 +183,16 @@ namespace DML.Application.Classes
while (!loggedIn)
{
var token = "abc";
try
{
if (!string.IsNullOrEmpty(Settings.LoginToken))
{
Logger.Debug("Trying to login with last known token...");
loggedIn = await DMLClient.Login(token);
loggedIn = await DMLClient.Login(Settings.LoginToken);
}
}
catch (HttpException e)
catch (HttpException)
{
Logger.Warn("HTTPException occured during login. Probably from login token.");
}