mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
RsLoginHelper::attemptLogin clear cached passphrase after usage
Thanks Cyril for suggestion
This commit is contained in:
parent
4bc6919ba9
commit
3094146c13
1 changed files with 4 additions and 3 deletions
|
@ -1940,10 +1940,11 @@ RsInit::LoadCertificateStatus RsLoginHelper::attemptLogin(
|
||||||
if(!rsNotify->cachePgpPassphrase(password)) return RsInit::ERR_UNKOWN;
|
if(!rsNotify->cachePgpPassphrase(password)) return RsInit::ERR_UNKOWN;
|
||||||
if(!rsNotify->setDisableAskPassword(true)) return RsInit::ERR_UNKOWN;
|
if(!rsNotify->setDisableAskPassword(true)) return RsInit::ERR_UNKOWN;
|
||||||
if(!RsAccounts::SelectAccount(account)) return RsInit::ERR_UNKOWN;
|
if(!RsAccounts::SelectAccount(account)) return RsInit::ERR_UNKOWN;
|
||||||
std::string ignore;
|
std::string _ignore_lockFilePath;
|
||||||
RsInit::LoadCertificateStatus ret =
|
RsInit::LoadCertificateStatus ret =
|
||||||
RsInit::LockAndLoadCertificates(false, ignore);
|
RsInit::LockAndLoadCertificates(false, _ignore_lockFilePath);
|
||||||
rsNotify->setDisableAskPassword(false);
|
if(!rsNotify->setDisableAskPassword(false)) return RsInit::ERR_UNKOWN;
|
||||||
|
if(!rsNotify->clearPgpPassphrase()) return RsInit::ERR_UNKOWN;
|
||||||
if(ret != RsInit::OK) return ret;
|
if(ret != RsInit::OK) return ret;
|
||||||
if(RsControl::instance()->StartupRetroShare() == 1) return RsInit::OK;
|
if(RsControl::instance()->StartupRetroShare() == 1) return RsInit::OK;
|
||||||
return RsInit::ERR_UNKOWN;
|
return RsInit::ERR_UNKOWN;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue