FIX: don't reload page when creating account with external auth and must_approve_users is enabled.

This commit is contained in:
Neil Lalonde 2014-04-15 10:13:47 -04:00
parent 542d54e6bf
commit 3b53c1814b

View File

@ -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() {