- login is too fast to see it in local dev conditions.
@@ -41,7 +41,13 @@ Router.onBeforeAction('dataNotFound', {
var requireLogin = function () {
if (!Meteor.user()) {
- this.render('accessDenied');
+ if (Meteor.loggingIn()) {
+ // Défini dans Router.configure().
+ this.render(this.loadingTemplate)
+ }
+ else {
+ this.render('accessDenied');
}
else {
this.next();