1
0
mirror of https://github.com/flarum/core.git synced 2025-07-25 02:31:17 +02:00

Merge pull request #403 from mtotheikle/allow-extra-signup-data

Allow support for passing extra signup data to API
This commit is contained in:
Franz Liedke
2015-09-01 18:28:53 +02:00

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()
};
}
}