Throw error if oauth listener does not start.

This commit is contained in:
Martin Rotter 2021-01-08 22:54:50 +01:00
parent cddfe06ecd
commit c1ba3c7bbf

View File

@ -266,6 +266,11 @@ bool OAuth2Service::login() {
if (!m_redirectionHandler->isListening()) {
qCriticalNN << LOGSEC_OAUTH
<< "Cannot log-in because OAuth redirection handler is not listening.";
emit tokensRetrieveError(QString(), tr("Failed to starting OAuth "
"redirection listener. Maybe your "
"rights are not high enough."));
return false;
}