Fix for users with some special characters in their password not being able to log in using the login overlay in the Interface.

This commit is contained in:
Joseph Gilley 2014-06-05 00:26:45 -04:00
parent 7f3630a990
commit c1d1a8de5c

View file

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