I’m using {{> atForm}} for login and register, and also these packages for users accounts-password accounts-base useraccounts:unstyled
[![enter image description here][1]][1]
I want to remove register possibilities for users.
It should be something in [this list][2], but i’m not sure what i’m supposed to override.
Can anyone help?
I have added the following in my onRendered for the template containing the {{>atForm}}. I have a configuration collection so I can enable/disable account creation without having to push new code.
The below takes care of the social OAuth logins I have configured
Template.browserLogin.onRendered( function() {
var c = Content.findOne({type:'AllowAccountCreation',active:true});
if(c == undefined)
{
this.$('div.at-oauth').addClass('hidden');
this.$('div.at-sep').addClass('hidden');
}
});
Because the setting only disables account creation for passwords and not OAuth (in my experience). Also the setting is in the code, so in order to change it I must push new code.