mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Allow support for passing extra signup data to API
This commit is contained in:
parent
b8ba44b274
commit
a03edf673c
|
@ -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()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user