Merge pull request #25 from Serraniel/bugfix/#10-no-reprompt-on-wrong-login-data
Bugfix/#10 no reprompt on wrong login data Fixes a bug added during fixing of #10 .
This commit is contained in:
commit
7c6049a107
|
@ -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