Skip to content
Snippets Groups Projects
Commit aef6db64 authored by Parker, Peter's avatar Parker, Peter
Browse files

Refs #22608 - Implicit optional conversions to bool are not allowed.

parent 9ad12400
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,7 @@ bool ONCat::isUserLoggedIn() const {
return false;
}
return m_tokenStore->getToken();
return m_tokenStore->getToken().is_initialized();
}
void ONCat::logout() {
......@@ -342,7 +342,7 @@ void ONCat::refreshTokenIfNeeded(const DateAndTime &currentTime) {
throw CatalogError(ie.what());
}
} else if (m_flow == OAuthFlow::RESOURCE_OWNER_CREDENTIALS) {
if (!currentToken) {
if (!currentToken.is_initialized()) {
return;
}
if (!currentToken->isExpired(currentTime)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment