added dbg info

This commit is contained in:
csoler 2019-11-16 23:37:23 +01:00
parent 9491f1a78e
commit 0fdbcf6b57
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -143,6 +143,8 @@ int p3WebUI::status() const
void p3WebUI::setUserPassword(const std::string& passwd) void p3WebUI::setUserPassword(const std::string& passwd)
{ {
#ifdef RS_JSONAPI #ifdef RS_JSONAPI
std::cerr << "Updating webui token with new passwd \"" << passwd << "\"" << std::endl;
if(!rsJsonAPI->authorizeUser("webui",passwd)) if(!rsJsonAPI->authorizeUser("webui",passwd))
std::cerr << "(EE) Cannot register webui token. Some error occurred when calling authorizeUser()" << std::endl; std::cerr << "(EE) Cannot register webui token. Some error occurred when calling authorizeUser()" << std::endl;
#else #else