summaryrefslogtreecommitdiffstats
path: root/client/config/accounts.js
diff options
context:
space:
mode:
authorXavier Priour <xavier.priour@bubblyware.com>2015-11-13 12:43:34 +0100
committerXavier Priour <xavier.priour@bubblyware.com>2015-11-13 12:43:34 +0100
commita7427b9ae4e790989c49408ffe14aea4976db305 (patch)
tree3b56c753ce05ba9a5253078e2792b2c485d2912e /client/config/accounts.js
parent3dc70b3ea4d49bccb10d4f2b3e317c794da91e37 (diff)
parentcb3bd86396e4d19e1f05fcb94e3527f81e70412e (diff)
downloadwekan-a7427b9ae4e790989c49408ffe14aea4976db305.tar.gz
wekan-a7427b9ae4e790989c49408ffe14aea4976db305.tar.bz2
wekan-a7427b9ae4e790989c49408ffe14aea4976db305.zip
merge with /devel
Diffstat (limited to 'client/config/accounts.js')
-rw-r--r--client/config/accounts.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/client/config/accounts.js b/client/config/accounts.js
deleted file mode 100644
index d475e6b2..00000000
--- a/client/config/accounts.js
+++ /dev/null
@@ -1,48 +0,0 @@
-const passwordField = AccountsTemplates.removeField('password');
-const emailField = AccountsTemplates.removeField('email');
-AccountsTemplates.addFields([{
- _id: 'username',
- type: 'text',
- displayName: 'username',
- required: true,
- minLength: 2,
-}, emailField, passwordField]);
-
-AccountsTemplates.configure({
- defaultLayout: 'userFormsLayout',
- defaultContentRegion: 'content',
- confirmPassword: false,
- enablePasswordChange: true,
- sendVerificationEmail: true,
- showForgotPasswordLink: true,
- onLogoutHook() {
- const homePage = 'home';
- if (FlowRouter.getRouteName() === homePage) {
- FlowRouter.reload();
- } else {
- FlowRouter.go(homePage);
- }
- },
-});
-
-['signIn', 'signUp', 'resetPwd', 'forgotPwd', 'enrollAccount'].forEach(
- (routeName) => AccountsTemplates.configureRoute(routeName));
-
-// 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() {
- // 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();
- },
-});