Bugfix/#10 no reprompt on wrong login data #25
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue