FIX: /password-reset route now works when login_required is enabled

This commit is contained in:
Neil Lalonde 2015-05-01 11:14:09 -04:00
parent 2954c99a1e
commit 8521ee24b1
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
export default Discourse.Route.extend({
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() {
e.send('showForgotPassword');
});