1
0
mirror of https://github.com/flarum/core.git synced 2025-06-02 04:35:11 +02:00

Allow support for passing extra signup data to API

This commit is contained in:
Michael Williams 2015-09-01 07:58:14 -07:00
parent 3e14ef0714
commit 07ed4d10c0

View File

@ -173,11 +173,7 @@ export default class SignUpModal extends Modal {
this.loading = true;
const data = {
username: this.username(),
email: this.email(),
password: this.password()
};
const data = this.submitData();
app.store.createRecord('users').save(data).then(
user => {
@ -191,4 +187,12 @@ export default class SignUpModal extends Modal {
}
);
}
submitData() {
return {
username: this.username(),
email: this.email(),
password: this.password()
};
}
}