Encode the email query argument

This is required to correctly transfer characters like +
This commit is contained in:
Johannes Zellner
2018-04-18 21:29:38 +02:00
parent 924cc997aa
commit 67136e418c
3 changed files with 11 additions and 7 deletions
+4
View File
@@ -176,6 +176,10 @@ angular.module('Application').service('AppStore', ['$http', '$base64', 'Client',
$http.get(Client.getConfig().apiServerOrigin + '/api/v1/profile', { params: { accessToken: token }}).success(function (data, status) {
if (status !== 200) return callback(new AppStoreError(status, data));
// just some helper property, since angular bindings cannot dot his easily
data.profile.emailEncoded = encodeURIComponent(data.profile.email);
return callback(null, data.profile);
}).error(function (data, status) {
return callback(new AppStoreError(status, data));