mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-14 01:23:13 -04:00
JSON API authorize token in createLocation
Solve uncoherent 401 behaviour at first use without login
This commit is contained in:
parent
945775e9f5
commit
9e2c4ce49e
3 changed files with 54 additions and 6 deletions
libretroshare/src/rsserver
|
@ -1952,7 +1952,7 @@ void RsLoginHelper::getLocations(std::vector<RsLoginHelper::Location>& store)
|
|||
|
||||
bool RsLoginHelper::createLocation(
|
||||
RsLoginHelper::Location& l, const std::string& password,
|
||||
bool makeHidden, bool makeAutoTor, std::string& errorMessage )
|
||||
std::string& errorMessage, bool makeHidden, bool makeAutoTor )
|
||||
{
|
||||
if(isLoggedIn()) return (errorMessage="Already Running", false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue