mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fixing outstanding issues (#1537)
* Correct stopEnableAttemptsTimer thread affinity * Restart correctly, if running as service * Add instance# in API response * Qt6 updates * Update fallthrough guide * Update Compile warning
This commit is contained in:
@@ -990,7 +990,7 @@ void JsonAPI::handleConfigCommand(const QJsonObject &message, const QString &com
|
||||
{
|
||||
Debug(_log, "Restarting due to RPC command");
|
||||
|
||||
Process::restartHyperion();
|
||||
Process::restartHyperion(10);
|
||||
|
||||
sendSuccessReply(command + "-" + subcommand, tan);
|
||||
}
|
||||
@@ -1425,7 +1425,7 @@ void JsonAPI::handleAuthorizeCommand(const QJsonObject &message, const QString &
|
||||
if (!token.isEmpty())
|
||||
{
|
||||
// userToken is longer
|
||||
if (token.count() > 36)
|
||||
if (token.size() > 36)
|
||||
{
|
||||
if (API::isUserTokenAuthorized(token))
|
||||
sendSuccessReply(command + "-" + subc, tan);
|
||||
@@ -1435,7 +1435,7 @@ void JsonAPI::handleAuthorizeCommand(const QJsonObject &message, const QString &
|
||||
return;
|
||||
}
|
||||
// usual app token is 36
|
||||
if (token.count() == 36)
|
||||
if (token.size() == 36)
|
||||
{
|
||||
if (API::isTokenAuthorized(token))
|
||||
{
|
||||
@@ -1449,7 +1449,7 @@ void JsonAPI::handleAuthorizeCommand(const QJsonObject &message, const QString &
|
||||
|
||||
// password
|
||||
// use password
|
||||
if (password.count() >= 8)
|
||||
if (password.size() >= 8)
|
||||
{
|
||||
QString userTokenRep;
|
||||
if (API::isUserAuthorized(password) && API::getUserToken(userTokenRep))
|
||||
|
Reference in New Issue
Block a user