Encode the email query argument
This is required to correctly transfer characters like +
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user