FIX: /password-reset route now works when login_required is enabled
This commit is contained in:
parent
2954c99a1e
commit
8521ee24b1
|
@ -1,6 +1,6 @@
|
||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
beforeModel: function() {
|
beforeModel: function() {
|
||||||
this.replaceWith('discovery.latest').then(function(e) {
|
this.replaceWith(this.controllerFor('application').get('loginRequired') ? 'login' : 'discovery').then(function(e) {
|
||||||
Ember.run.next(function() {
|
Ember.run.next(function() {
|
||||||
e.send('showForgotPassword');
|
e.send('showForgotPassword');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue