mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: don't reload page when creating account with external auth and must_approve_users is enabled.
This commit is contained in:
parent
542d54e6bf
commit
3b53c1814b
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue