mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 03:36:58 -04:00
RsLoginHelper::createLocation expose capability of creating hidden locations
This commit is contained in:
parent
8f7bacbb35
commit
ab6a5c07cc
3 changed files with 11 additions and 5 deletions
|
@ -1967,7 +1967,7 @@ void RsLoginHelper::getLocations(std::vector<RsLoginHelper::Location>& store)
|
|||
|
||||
bool RsLoginHelper::createLocation(
|
||||
RsLoginHelper::Location& l, const std::string& password,
|
||||
std::string& errorMessage )
|
||||
bool makeHidden, bool makeAutoTor, std::string& errorMessage )
|
||||
{
|
||||
if(l.mLocationName.empty())
|
||||
{
|
||||
|
@ -1992,7 +1992,7 @@ bool RsLoginHelper::createLocation(
|
|||
if(!rsNotify->setDisableAskPassword(true)) return false;
|
||||
|
||||
bool ret = RsAccounts::createNewAccount(
|
||||
l.mPgpId, "", l.mLocationName, "", false, false,
|
||||
l.mPgpId, "", l.mLocationName, "", makeHidden, makeAutoTor,
|
||||
RSRandom::random_alphaNumericString(RsInit::getSslPwdLen()),
|
||||
l.mLocationId, errorMessage );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue