These functions don’t appear to work. I’m trying to make the template display just the username and password field. However, these functions don’t appear to have any effect!
This code is loaded serverside using the new import system.
import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';
import { AccountsTemplates } from 'meteor/useraccounts:core';
const pwd = AccountsTemplates.removeField('password');
AccountsTemplates.removeField('email');
AccountsTemplates.addFields([
{
_id: 'username',
type: 'text',
displayName: 'username',
required: true,
minLength: 5,
},
pwd,
]);
I included AccountsTemplates by using the {{> atForm}}
inclusion and bound it to a route manually.
Does anyone have any clue why these aren’t working for me?