Skip to content

Commit 2505fb1

Browse files
committed
Updat wording for oauth page
1 parent e8a46b4 commit 2505fb1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libsync/creds/oauth.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

413413
void 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

Comments
 (0)