From 2fd248ab1cc494939dd92f7d33aee2b499e5875e Mon Sep 17 00:00:00 2001 From: Cyril Soler Date: Wed, 23 Feb 2022 23:24:45 +0100 Subject: [PATCH] fixed bug in error handling of rsJsonApi->authorizeUser() call --- src/jsonapi/p3webui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsonapi/p3webui.cc b/src/jsonapi/p3webui.cc index acb907c5d..84b5379b5 100644 --- a/src/jsonapi/p3webui.cc +++ b/src/jsonapi/p3webui.cc @@ -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; }