mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix GUI AutoLogin
This commit is contained in:
parent
2d5e1d637f
commit
59e018e02d
@ -497,15 +497,13 @@ int RsInit::InitRetroShare(int _argc, char **_argv, bool /* strictCheck */)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef TO_REMOVE
|
||||
#ifdef RS_AUTOLOGIN
|
||||
/* check that we have selected someone */
|
||||
RsPeerId preferredId;
|
||||
bool existingUser = rsAccounts->getPreferredAccountId(preferredId);
|
||||
|
||||
if (existingUser)
|
||||
{
|
||||
if (rsInitConfig->passwd != "")
|
||||
|
||||
if(RsLoginHandler::getSSLPassword(preferredId,false,rsInitConfig->passwd))
|
||||
{
|
||||
RsInit::setAutoLogin(true);
|
||||
@ -514,6 +512,7 @@ int RsInit::InitRetroShare(int _argc, char **_argv, bool /* strictCheck */)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return RS_INIT_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user