- );
- }
-
- return body;
}
footer() {
@@ -181,19 +144,7 @@ export default class SignUpModal extends Modal {
data,
errorHandler: this.onerror.bind(this)
}).then(
- payload => {
- const user = app.store.pushPayload(payload);
-
- // If the user's new account has been activated, then we can assume
- // that they have been logged in too. Thus, we will reload the page.
- // Otherwise, we will show a message asking them to check their email.
- if (user.isActivated()) {
- window.location.reload();
- } else {
- this.welcomeUser = user;
- this.loaded();
- }
- },
+ () => window.location.reload(),
this.loaded.bind(this)
);
}