From 64732b8488d157dbdc21aabab0245a7c93a6122f Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 13 Aug 2015 13:05:38 +0930 Subject: [PATCH] Don't hide login modal; wait for page to refresh --- framework/core/js/forum/src/components/LogInModal.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/framework/core/js/forum/src/components/LogInModal.js b/framework/core/js/forum/src/components/LogInModal.js index ab4818d32..ad839a863 100644 --- a/framework/core/js/forum/src/components/LogInModal.js +++ b/framework/core/js/forum/src/components/LogInModal.js @@ -117,10 +117,7 @@ export default class LogInModal extends Modal { const password = this.password(); app.session.login(email, password).then( - () => { - this.hide(); - if (this.props.onlogin) this.props.onlogin(); - }, + null, response => { this.loading = false;