Changeset View
Changeset View
Standalone View
Standalone View
src/lib/getcredentialsjob.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
76 | if (!identity) { | 76 | if (!identity) { | ||
77 | qWarning() << "Unable to find identity for account id" << id; | 77 | qWarning() << "Unable to find identity for account id" << id; | ||
78 | q->setError(KJob::UserDefinedError); | 78 | q->setError(KJob::UserDefinedError); | ||
79 | q->setErrorText(QLatin1String("Could not find credentials")); | 79 | q->setErrorText(QLatin1String("Could not find credentials")); | ||
80 | q->emitResult(); | 80 | q->emitResult(); | ||
81 | return; | 81 | return; | ||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | authData["AccountUsername"] = acc->value(QLatin1String("username")).toString(); | 84 | authData[QStringLiteral("AccountUsername")] = acc->value(QLatin1String("username")).toString(); | ||
85 | QPointer<SignOn::AuthSession> authSession = identity->createSession(authMethod.isEmpty() ? serviceAuthData.method() : authMethod); | 85 | QPointer<SignOn::AuthSession> authSession = identity->createSession(authMethod.isEmpty() ? serviceAuthData.method() : authMethod); | ||
86 | if (!authSession) { | 86 | if (!authSession) { | ||
87 | qWarning() << "Unable to create auth session for" << authMethod << serviceAuthData.method(); | 87 | qWarning() << "Unable to create auth session for" << authMethod << serviceAuthData.method(); | ||
88 | q->setError(KJob::UserDefinedError); | 88 | q->setError(KJob::UserDefinedError); | ||
89 | q->setErrorText(QLatin1String("Could not create auth session")); | 89 | q->setErrorText(QLatin1String("Could not create auth session")); | ||
90 | q->emitResult(); | 90 | q->emitResult(); | ||
91 | return; | 91 | return; | ||
92 | } | 92 | } | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |