Vulcan/packages/nova-users/lib/config.js

96 lines
2.4 KiB
JavaScript
Raw Normal View History

2016-02-17 14:22:28 +09:00
// // //////////////////////////////////
// // // AccountsTemplates configuration
// // //////////////////////////////////
2015-09-18 16:27:59 +09:00
2016-02-17 14:22:28 +09:00
// AccountsTemplates.configure({
// defaultLayout: 'layout',
// defaultLayoutRegions: {},
// defaultContentRegion: 'main',
// enablePasswordChange: true,
// showForgotPasswordLink: true,
// confirmPassword: false,
// overrideLoginErrors: true,
// lowercaseUsername: true,
2015-09-18 16:27:59 +09:00
2016-02-17 14:22:28 +09:00
// negativeFeedback: false,
// positiveFeedback: false,
// negativeValidation: true,
// positiveValidation: true
// });
2015-09-18 16:27:59 +09:00
2016-02-17 14:22:28 +09:00
// AccountsTemplates.configureRoute('signIn', {
// name: 'signIn',
// path: '/sign-in',
// });
// AccountsTemplates.configureRoute('signUp', {
// name: 'signUp',
// path: '/register',
// });
// AccountsTemplates.configureRoute('changePwd');
// AccountsTemplates.configureRoute('forgotPwd');
// AccountsTemplates.configureRoute('resetPwd');
// AccountsTemplates.configureRoute('enrollAccount');
// AccountsTemplates.configureRoute('verifyEmail');
2015-09-18 16:27:59 +09:00
2016-02-17 14:22:28 +09:00
// // /* global
// // AccountsTemplates: false,
// // Settings: false
// // */
2015-03-12 10:11:48 +01:00
2014-09-20 14:21:56 +02:00
2016-02-17 14:22:28 +09:00
// if (Meteor.isServer) {
// Meteor.startup(function () {
// Accounts.emailTemplates.siteName = Settings.get('title');
// Accounts.emailTemplates.from = Settings.get('defaultEmail');
// });
// }
2014-09-20 14:21:56 +02:00
2016-02-17 14:22:28 +09:00
// //Fields
// AccountsTemplates.addField({
// _id: 'username',
// type: 'text',
// displayName: 'username',
// required: true,
// minLength: 3,
// errStr: 'error.minChar'
// });
2014-09-18 11:00:12 +02:00
2016-02-17 14:22:28 +09:00
// AccountsTemplates.removeField('email');
// AccountsTemplates.addField({
// _id: 'email',
// type: 'email',
// required: true,
// re: /.+@(.+){2,}\.(.+){2,}/,
// errStr: 'error.accounts.Invalid email',
// });
2014-09-20 12:52:14 +02:00
2016-02-17 14:22:28 +09:00
// AccountsTemplates.removeField('password');
// AccountsTemplates.addField({
// _id: 'password',
// type: 'password',
// required: true,
// minLength: 8,
// errStr: 'error.minChar'
// });
2014-09-20 12:52:14 +02:00
2016-02-17 14:22:28 +09:00
// AccountsTemplates.addField({
// _id: 'username_and_email',
// type: 'text',
// required: true,
// displayName: 'usernameOrEmail',
// placeholder: 'usernameOrEmail',
// });
2014-09-18 11:00:12 +02:00
2016-02-17 14:22:28 +09:00
// // hack to get signOut route not considered among previous paths
// if (Meteor.isClient) {
// Meteor.startup(function(){
// AccountsTemplates.knownRoutes.push('/sign-out');
// });
// }
// Avatar.setOptions({
// fallbackType: 'initials',
// emailHashProperty: 'telescope.emailHash'
// });