Feature/595b-Ensuring that users have a username, closes #752#752
Feature/595b-Ensuring that users have a username, closes #752#752
Conversation
sebbel
commented
Jan 6, 2016
- Added a Field to Signup and Login to supply a username
- The username is a required field
- Cannot choose a username that already exists
- User can login with username or email
- Added a Field to Signup and Login to supply a username - The username is a required field - Cannot choose a username that already exists - User can login with username or email
|
@apinf/developers please review |
|
Just tested on a local instance, the Profile Template is using the Meteor.user.username field. |
|
@sebbel I have encountered a bug, and am not sure the work-to around. When registering via Github, with a Github account that has the same username (e.g. sebbel) as an existing Apinf account (e.g. sebbel), I get the error: "username already exists". In the case of the Github registration, we somehow need to get the username after the Github registration/user creation happens. |
|
It also might be possible to allow users to log in without a username. Then, the Github login could complete, and the user would be prompted to create a username. |
|
Thanks for your feedback. I haven't tested the GitHub authentication but Am Donnerstag, 7. Januar 2016 schrieb Brylie Christopher Oxley :
|
|
Good idea. Lets try that out. |
|
@apinf/developers please review |
|
Line 7 in profile.js: "return sAlert.error(error);" is causing "Uncaught TypeError: Converting circular structure to JSON". Trying to find out how to fix it. |
|
I fixed what I could, please review. |
|
@elnzv please review 🔜 |
|
OK, we have to figure out some way to send a simple message back to AutoForm saying the username exists. That MongoDB error will not suffice, and the error will ideally appear directly below the username field. The AutoForm |
|
Pass the following error to the user: "User name already exists. Enter another user name." |
|
Please review @apinf/developers |
|
@sebbel thanks! 👍 This is perfect. |
|
I opened a support request about translating custom validation texts: |
|
We can merge this PR, as full translation capabilities are not required for PoC. |
|
OK, I moved the i18n folder into |
…oard into feature/595b-ensure-Username
|
I have also merged changes from |
|
@apinf/developers please review once more, and merge if possible. |
Feature/595b-Ensuring that users have a username, closes #752
