How do I add the following code to the accounts-ui package so that a profile is created at the time the user is created?
if (options.profile)
{
user.profile = options.profile;
}
If the accounts-ui form cannot be changed would it be possible just to add an empty object to the profile at the time the account is created?
Something like this perhaps:
user.profile = {};
I was looking for this package in the "packages" directory but didn't find it, why is it not there? I thought this code would be easily available for any necessary modification.
Any advice on this would be great.
Thanks in advance :)