Skip to content

Commit

Permalink
FIX: /password-reset route now works when login_required is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nlalonde committed May 1, 2015
1 parent 2954c99 commit 8521ee2
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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');
});
Expand Down

0 comments on commit 8521ee2

Please sign in to comment.