mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:54:16 +08:00
FIX: Show correct login page when login_required
This commit is contained in:
parent
04643898c9
commit
af36df057c
|
@ -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',
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user