mirror of
https://github.com/discourse/discourse.git
synced 2025-04-09 08:00:52 +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({
|
Discourse.StaticController.reopenClass({
|
||||||
PAGES: ['faq', 'tos', 'privacy', 'login', 'guidelines'],
|
PAGES: ['faq', 'tos', 'privacy', 'guidelines'],
|
||||||
CONFIGS: {
|
CONFIGS: {
|
||||||
'faq': 'faq_url',
|
'faq': 'faq_url',
|
||||||
'tos': 'tos_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…
x
Reference in New Issue
Block a user