mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:17:14 +08:00
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({
|
||||
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');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user