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
I have my user model setup to allow either one or two fields (email and phoneNumber) as username (both can be provided) the order of priority is set to be email so i passed usernameField: 'email', and usernameQueryFields: ['userCode'], options. But on calling the register function with only phoneNumber, passport local mongoose throws missingUserName error because it only check for userNameField as shown in the snippet below:
It doesn't check for usernameQueryFields
The text was updated successfully, but these errors were encountered:
I have my user model setup to allow either one or two fields (email and phoneNumber) as username (both can be provided) the order of priority is set to be email so i passed
usernameField: 'email',
andusernameQueryFields: ['userCode'],
options. But on calling the register function with only phoneNumber, passport local mongoose throws missingUserName error because it only check for userNameField as shown in the snippet below:It doesn't check for usernameQueryFields
The text was updated successfully, but these errors were encountered: