You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, with AccountsTemplates.configure({forbidClientAccountCreation: true}); you should be able to achieve what you're asking for...
But you're right: there's no filter on the setState method checking the forbidClientAccountCreation configuration options.
I'd say the following should work:
AT.prototype.setState=function(state,callback){check(state,String);if(!this._isValidState(state)||(AccountsTemplates.options.forbidClientAccountCreation&&state==='signUp')){thrownewMeteor.Error(500,"Internal server error","accounts-templates-core package got an invalid state value!");}this.state.form.set("state",state);if(!this.avoidClearError){this.clearState();}this.avoidClearError=false;if(_.isFunction(callback)){callback();}};
Hello !
I know that I can disactivate the "signUp" link but the user can still go to the console and type in the console :
Is there a way for fix this problem ?
The text was updated successfully, but these errors were encountered: