Skip to content

Commit a7ccb33

Browse files
author
dmp42
committed
Change payload format
1 parent a842377 commit a7ccb33

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/jsboot/service/flaves/account.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,18 @@ jsBoot.pack('jsBoot.service', function(api) {
5858
* @see Roxee.gist.services.account.validate
5959
*/
6060
this.create = function(onSuccess, onFailure, username, email, password, payload) {
61-
payload = payload || {};
62-
payload.username = username;
63-
payload.email = email.toLowerCase();
64-
payload.password = password;
6561
requestor.query(requestor.POST, {
6662
service: USER,
6763
onsuccess: onSuccess,
6864
onfailure: onFailure,
6965
// XXX Dirty trick while manu fixes his internal redirects lacking trailing slash
7066
command: '#',
71-
payload: payload
67+
payload: {
68+
username: username,
69+
email: email.toLowerCase(),
70+
password: password,
71+
extra: payload || {}
72+
}
7273
});
7374
};
7475

0 commit comments

Comments
 (0)