I am trying to do the user registration process in meteor . I looked at meteor accounts-password package which is very good and handle pretty much all the required logic. For my app ,I am struggling over the following two points ----
1 . Accounts-password api named Accounts.createUser takes a limited parameters like -- username , email , password for registering the user . I am requiring other fields like mobile_number , first_name, last_name, address for completing the user registration by creatUser . The mobile number will be used to send an OTP to verify the user's mobile . For email verification , meteor does it very easily . How can this multiple parameters based create user be executed using the accounts-password api's.
2 . Accounts-password api named Accounts.loginWithPassword only takes email , username and password to login . In my app , user will enter either email or mobile_number as one input and password as second input , and based on this , i need to verify the user and log him in the app . How can the mobile number based loggingIn be included ?