mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 23:56:29 +02:00
fix for display of multiple sign up errors
This commit is contained in:
parent
b66ddbdbdb
commit
9445fc2898
2 changed files with 3 additions and 5 deletions
|
@ -63,12 +63,10 @@ Item {
|
||||||
|
|
||||||
visible: false
|
visible: false
|
||||||
|
|
||||||
text: qsTr("Username or password incorrect.")
|
text: qsTr("There was an unknown error while creating your account.")
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
color: hifi.colors.redAccent
|
color: hifi.colors.redAccent
|
||||||
lineHeight: 1
|
horizontalAlignment: Text.AlignLeft
|
||||||
lineHeightMode: Text.ProportionalHeight
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
|
|
@ -225,7 +225,7 @@ void LoginDialog::signupFailed(QNetworkReply& reply) {
|
||||||
errorStringList.append(QString("Password %1.").arg(errorStringFromAPIObject(dataObject[PASSWORD_DATA_KEY])));
|
errorStringList.append(QString("Password %1.").arg(errorStringFromAPIObject(dataObject[PASSWORD_DATA_KEY])));
|
||||||
}
|
}
|
||||||
|
|
||||||
emit handleSignupFailed(errorStringList.join(' '));
|
emit handleSignupFailed(errorStringList.join('\n'));
|
||||||
} else {
|
} else {
|
||||||
static const QString DEFAULT_SIGN_UP_FAILURE_MESSAGE = "There was an unknown error while creating your account. Please try again later.";
|
static const QString DEFAULT_SIGN_UP_FAILURE_MESSAGE = "There was an unknown error while creating your account. Please try again later.";
|
||||||
emit handleSignupFailed(DEFAULT_SIGN_UP_FAILURE_MESSAGE);
|
emit handleSignupFailed(DEFAULT_SIGN_UP_FAILURE_MESSAGE);
|
||||||
|
|
Loading…
Reference in a new issue