summaryrefslogtreecommitdiffstats
path: root/client/config/accounts.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/config/accounts.js')
-rw-r--r--client/config/accounts.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/client/config/accounts.js b/client/config/accounts.js
index 5e6edd39..e12dd8bc 100644
--- a/client/config/accounts.js
+++ b/client/config/accounts.js
@@ -17,3 +17,29 @@ AccountsTemplates.configure({
Router.go('Home');
}
});
+
+_.each(['signIn', 'signUp', 'resetPwd', 'forgotPwd', 'enrollAccount'],
+ function(routeName) {
+ AccountsTemplates.configureRoute(routeName, {
+ layoutTemplate: 'userFormsLayout'
+ });
+});
+
+// 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();
+ }
+});