From 3b53c1814bfc6ee5821b5e5e52f5e1ab81be9092 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 15 Apr 2014 10:13:47 -0400 Subject: [PATCH] FIX: don't reload page when creating account with external auth and must_approve_users is enabled. --- .../discourse/controllers/create_account_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/create_account_controller.js b/app/assets/javascripts/discourse/controllers/create_account_controller.js index 05e8c383678..28790a564b3 100644 --- a/app/assets/javascripts/discourse/controllers/create_account_controller.js +++ b/app/assets/javascripts/discourse/controllers/create_account_controller.js @@ -352,7 +352,7 @@ Discourse.CreateAccountController = Discourse.Controller.extend(Discourse.ModalF } self.set('formSubmitted', false); } - if (result.active) { + if (result.active && !Discourse.SiteSettings.must_approve_users) { return window.location.reload(); } }, function() {