Merge pull request #15279 from kitely/allow-emails-with-plus-sign

case 21982: Allow logging-in with an email that contains a '+' sign
This commit is contained in:
Shannon Romano 2019-03-29 13:04:11 -07:00 committed by GitHub
commit df97f595f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -536,7 +536,7 @@ void AccountManager::requestAccessToken(const QString& login, const QString& pas
QByteArray postData;
postData.append("grant_type=password&");
postData.append("username=" + login + "&");
postData.append("username=" + QUrl::toPercentEncoding(login) + "&");
postData.append("password=" + QUrl::toPercentEncoding(password) + "&");
postData.append("scope=" + ACCOUNT_MANAGER_REQUESTED_SCOPE);