@@ -394,11 +394,11 @@ void OAuth::startAuthentication()
394394 // Connected with the wrong user
395395 qCWarning (lcOauth) << " We expected the user" << _idToken.preferred_username () << " but the server answered with user"
396396 << idToken.preferred_username ();
397- const QString message = tr (" <h1>Wrong user</h1>"
397+ const QString message = tr (" <h1>Incorrect user</h1>"
398398 " <p>You logged-in with user <em>%1</em>, but must login with user <em>%2</em>.<br>"
399- " Please return to the %3 client and restart the authentication.</p>" )
399+ " Please return to the %3 and restart the authentication.</p>" )
400400 .arg (idToken.preferred_username (), _idToken.preferred_username (), Theme::instance ()->appNameGUI ());
401- httpReplyAndClose (socket, QStringLiteral (" 403 Forbidden" ), tr (" Wrong user" ), message);
401+ httpReplyAndClose (socket, QStringLiteral (" 403 Forbidden" ), tr (" Incorrect user" ), message);
402402 Q_EMIT result (Error);
403403 } else {
404404 setIdToken (std::move (idToken));
@@ -412,8 +412,8 @@ void OAuth::startAuthentication()
412412
413413void OAuth::finalize (const QPointer<QTcpSocket> &socket, const QString &accessToken, const QString &refreshToken, const QUrl &messageUrl)
414414{
415- const QString loginSuccessfulHtml = tr (" <h1>Login Successful </h1><p>You can close this window.</p>" );
416- const QString loginSuccessfulTitle = tr (" Login Successful " );
415+ const QString loginSuccessfulHtml = tr (" <h1>Login successful </h1><p>You can close this window.</p>" );
416+ const QString loginSuccessfulTitle = tr (" Login successful " );
417417 if (messageUrl.isValid ()) {
418418 httpReplyAndClose (socket, QStringLiteral (" 303 See Other" ), loginSuccessfulTitle, loginSuccessfulHtml,
419419 {QStringLiteral (" Location: %1" ).arg (QString::fromUtf8 (messageUrl.toEncoded ()))});
0 commit comments