Vulcan/packages/nova-users/lib/config.js
2016-02-17 14:27:27 +09:00

95 lines
2.4 KiB
JavaScript

// // //////////////////////////////////
// // // AccountsTemplates configuration
// // //////////////////////////////////
// AccountsTemplates.configure({
// defaultLayout: 'layout',
// defaultLayoutRegions: {},
// defaultContentRegion: 'main',
// enablePasswordChange: true,
// showForgotPasswordLink: true,
// confirmPassword: false,
// overrideLoginErrors: true,
// lowercaseUsername: true,
// negativeFeedback: false,
// positiveFeedback: false,
// negativeValidation: true,
// positiveValidation: true
// });
// 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');
// // /* global
// // AccountsTemplates: false,
// // Settings: false
// // */
// if (Meteor.isServer) {
// Meteor.startup(function () {
// Accounts.emailTemplates.siteName = Settings.get('title');
// Accounts.emailTemplates.from = Settings.get('defaultEmail');
// });
// }
// //Fields
// AccountsTemplates.addField({
// _id: 'username',
// type: 'text',
// displayName: 'username',
// required: true,
// minLength: 3,
// errStr: 'error.minChar'
// });
// AccountsTemplates.removeField('email');
// AccountsTemplates.addField({
// _id: 'email',
// type: 'email',
// required: true,
// re: /.+@(.+){2,}\.(.+){2,}/,
// errStr: 'error.accounts.Invalid email',
// });
// AccountsTemplates.removeField('password');
// AccountsTemplates.addField({
// _id: 'password',
// type: 'password',
// required: true,
// minLength: 8,
// errStr: 'error.minChar'
// });
// AccountsTemplates.addField({
// _id: 'username_and_email',
// type: 'text',
// required: true,
// displayName: 'usernameOrEmail',
// placeholder: 'usernameOrEmail',
// });
// // 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'
// });