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.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/client/config/accounts.js b/client/config/accounts.js
new file mode 100644
index 00000000..9e0d17d3
--- /dev/null
+++ b/client/config/accounts.js
@@ -0,0 +1,35 @@
+AccountsTemplates.configure({
+ confirmPassword: false,
+ enablePasswordChange: true,
+ sendVerificationEmail: true,
+ showForgotPasswordLink: true
+});
+
+AccountsTemplates.removeField('password');
+AccountsTemplates.removeField('email');
+AccountsTemplates.addFields([
+ {
+ _id: 'username',
+ type: 'text',
+ displayName: 'username',
+ required: true,
+ minLength: 5
+ },
+ {
+ _id: 'email',
+ type: 'email',
+ required: true,
+ displayName: 'email',
+ re: /.+@(.+){2,}\.(.+){2,}/,
+ errStr: 'Invalid email'
+ },
+ {
+ _id: 'password',
+ type: 'password',
+ placeholder: {
+ signUp: 'At least six characters'
+ },
+ required: true,
+ minLength: 6
+ }
+]);