Upgrade dependencies

This includes a security fix in mquandalle:bower, and a new package
for useraccounts iron-router templates which forced us to move some
configuration function calls.
This commit is contained in:
Maxime Quandalle 2015-08-21 21:20:23 +02:00
parent ae4288d507
commit 4fc72d64b4
5 changed files with 43 additions and 38 deletions

View file

@ -1,10 +1,3 @@
_.each(['signIn', 'signUp', 'resetPwd', 'forgotPwd', 'enrollAccount'],
function(routeName) {
AccountsTemplates.configureRoute(routeName, {
layoutTemplate: 'userFormsLayout'
});
});
Router.route('/profile/:username', {
name: 'Profile',
template: 'profile',

View file

@ -33,25 +33,6 @@ Template.editProfilePopup.events({
}
});
// We display the form to change the password in a popup window that already
// have a title, so we unset the title automatically displayed by useraccounts.
AccountsTemplates.configure({
texts: {
title: {
changePwd: ''
}
}
});
AccountsTemplates.configureRoute('changePwd', {
redirect: function() {
// XXX We should emit a notification once we have a notification system.
// Currently the user has no indication that his modification has been
// applied.
Popup.back();
}
});
// XXX For some reason the useraccounts autofocus isnt working in this case.
// See https://github.com/meteor-useraccounts/core/issues/384
Template.changePasswordPopup.onRendered(function() {