mirror of
https://github.com/RetroShare/libretroshare.git
synced 2026-09-14 11:05:45 +05:00
fixed bug in error handling of rsJsonApi->authorizeUser() call
This commit is contained in:
parent
1965f20003
commit
2fd248ab1c
@ -177,7 +177,7 @@ void p3WebUI::setUserPassword(const std::string& passwd)
|
||||
RsDbg() << __PRETTY_FUNCTION__ << " Updating webui token with new passwd \""
|
||||
<< passwd << "\"" << std::endl;
|
||||
|
||||
if(!rsJsonApi->authorizeUser("webui",passwd))
|
||||
if(rsJsonApi->authorizeUser("webui",passwd)) // (bool)std::error_condition is true when there is an error.
|
||||
std::cerr << "(EE) Cannot register webui token. Some error occurred when calling authorizeUser()" << std::endl;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user