An account login system forked from accounts-phone meteor package.
We have adjusted the package to make it work with accounts-password package. To make it work, the accounts-password package must be added at application level but not the package level. Probably this has something to do with the loading order of the packages.
update: As we have added email address to user identifier in this package, do we really need accounts-password?
We use alidayu-node to send sms through alidayu sms service. See document https://github.com/hanqingnan/alidayu-node .
Modify SMS.phoneTemplates in sms_server.js to change the message templates.
- Client calls 'createUserWithPhone'.
- Server inserts new user to users collection.
- Server sets and sends verification code to user if so defined.
- User enters verification code and logs in.
- Client calls 'requestPhoneVerification'.
- Server sets and sends new verification code. Waits if the request is too often or exceeds limit.
- User enters code.
- Client calls 'verifyPhone' to verify the code. If new password is submitted, password will be reset after verification.