diff --git a/framework/core/js/forum/src/components/SignUpModal.js b/framework/core/js/forum/src/components/SignUpModal.js index b01504d20..0cbdb231e 100644 --- a/framework/core/js/forum/src/components/SignUpModal.js +++ b/framework/core/js/forum/src/components/SignUpModal.js @@ -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() + }; + } }