Hi,
I read all the docs, and have the basics working. But the only thing that won’t work at all is creating accounts by the client. I always get forbidden
I already put the config in a shared location
with forbidClientAccountCreation: false,
import { Accounts } from 'meteor/accounts-base';
AccountsTemplates.configure({
// Behavior
confirmPassword: false,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
lowercaseUsername: false,
focusFirstInput: true,
// Appearance
showAddRemoveServices: false,
showForgotPasswordLink: false,
showLabels: true,
showPlaceholders: true,
showResendVerificationEmailLink: false,
// Client-side Validation
continuousValidation: false,
negativeFeedback: false,
negativeValidation: true,
positiveValidation: true,
positiveFeedback: true,
showValidating: true,
// Privacy Policy and Terms of Use
privacyUrl: 'privacy',
termsUrl: 'terms-of-use',
// Redirects
homeRoutePath: '/',
redirectTimeout: 4000,
// // Hooks
// onLogoutHook: myLogoutFunc,
// onSubmitHook: mySubmitFunc,
// preSignUpHook: myPreSubmitFunc,
// postSignUpHook: myPostSubmitFunc,
// Texts
texts: {
button: {
signUp: "Register Now!"
},
socialSignUp: "Register",
socialIcons: {
"meteor-developer": "fa fa-rocket"
},
title: {
forgotPwd: "Recover Your Password"
},
},
});
// AccountsTemplates.configure({
// defaultLayout: 'layout',
// });
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('changePwd');
AccountsTemplates.configureRoute('enrollAccount');
// AccountsTemplates.configureRoute('forgotPwd');
AccountsTemplates.configureRoute('resetPwd');
AccountsTemplates.configureRoute('signUp');
iron router
Router.configure({
layoutTemplate : 'layout',
// loadingTemplate: 'loading',
notFoundTemplate: 'notFound'
});
// console.log('de AccountsTemplates is ',AccountsTemplates);
Router.plugin('ensureSignedIn', {
only: ['generation', 'users']
});
Router.route('/', function () {
this.render('introduction');
});
// Router.route('/SSOClient', function(){
// console.log('router: the request is: '+ req);
// var req = this.request;
// console.log(this);
// });
Router.route('/users');
Router.route('/homeAbout');
Router.route('/APILogs');
Router.route('/introduction');
Router.route('/introductionExtended');
Router.route('/introductionSecurity');
Router.route('/SecurityDeepDive');
Router.route('/generation');
Router.route('/securityRules');
Router.route('/QMC');
Router.route('/webIntegration');
Router.route('/architecture');
thank you