FIX: Show correct login page when login_required

This commit is contained in:
Robin Ward 2014-07-29 13:38:04 -04:00
parent 04643898c9
commit af36df057c
2 changed files with 14 additions and 1 deletions

View File

@ -18,7 +18,7 @@ Discourse.StaticController = Em.ObjectController.extend({
});
Discourse.StaticController.reopenClass({
PAGES: ['faq', 'tos', 'privacy', 'login', 'guidelines'],
PAGES: ['faq', 'tos', 'privacy', 'guidelines'],
CONFIGS: {
'faq': 'faq_url',
'tos': 'tos_url',

View File

@ -7,5 +7,18 @@ export default Discourse.Route.extend({
});
});
}
},
model: function() {
return Discourse.StaticPage.find('login');
},
renderTemplate: function() {
// do nothing
this.render('static');
},
setupController: function(controller, model) {
this.controllerFor('static').set('model', model);
}
});