Throw error if oauth listener does not start.
This commit is contained in:
parent
cddfe06ecd
commit
c1ba3c7bbf
1 changed files with 5 additions and 0 deletions
|
|
@ -266,6 +266,11 @@ bool OAuth2Service::login() {
|
||||||
if (!m_redirectionHandler->isListening()) {
|
if (!m_redirectionHandler->isListening()) {
|
||||||
qCriticalNN << LOGSEC_OAUTH
|
qCriticalNN << LOGSEC_OAUTH
|
||||||
<< "Cannot log-in because OAuth redirection handler is not listening.";
|
<< "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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue