mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 07:34:18 +08: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
|
@ -352,7 +352,7 @@ Discourse.CreateAccountController = Discourse.Controller.extend(Discourse.ModalF
|
||||||
}
|
}
|
||||||
self.set('formSubmitted', false);
|
self.set('formSubmitted', false);
|
||||||
}
|
}
|
||||||
if (result.active) {
|
if (result.active && !Discourse.SiteSettings.must_approve_users) {
|
||||||
return window.location.reload();
|
return window.location.reload();
|
||||||
}
|
}
|
||||||
}, function() {
|
}, function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user