mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 11:48:56 +03:00
WebFlowCredentials: Make username comparison case-insensitive (fix #1741)
Fixes issue #1741 Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
3edcd2a578
commit
ab1099f13e
1 changed files with 5 additions and 1 deletions
|
@ -183,7 +183,11 @@ void WebFlowCredentials::askFromUser() {
|
|||
void WebFlowCredentials::slotAskFromUserCredentialsProvided(const QString &user, const QString &pass, const QString &host) {
|
||||
Q_UNUSED(host)
|
||||
|
||||
if (_user != user) {
|
||||
// Compare the re-entered username case-insensitive and save the new value (avoid breaking the account)
|
||||
// See issue: https://github.com/nextcloud/desktop/issues/1741
|
||||
if (QString::compare(_user, user, Qt::CaseInsensitive) == 0) {
|
||||
_user = user;
|
||||
} else {
|
||||
qCInfo(lcWebFlowCredentials()) << "Authed with the wrong user!";
|
||||
|
||||
QString msg = tr("Please login with the user: %1")
|
||||
|
|
Loading…
Reference in a new issue