Send 204 when WebAPI response contains no data

PR #21349.
This commit is contained in:
Thomas Piccirello
2025-06-04 23:25:04 -07:00
committed by GitHub
parent 1cb6173ad1
commit 0c48b70e5b
13 changed files with 215 additions and 17 deletions

View File

@@ -46,11 +46,13 @@ AuthController::AuthController(ISessionManager *sessionManager, IApplication *ap
void AuthController::setUsername(const QString &username)
{
m_username = username;
setResult(QString());
}
void AuthController::setPasswordHash(const QByteArray &passwordHash)
{
m_passwordHash = passwordHash;
setResult(QString());
}
void AuthController::loginAction()
@@ -96,9 +98,10 @@ void AuthController::loginAction()
}
}
void AuthController::logoutAction() const
void AuthController::logoutAction()
{
m_sessionManager->sessionEnd();
setResult(QString());
}
bool AuthController::isBanned() const