Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accounts.ui.config bug #4856

Closed
SoilChang opened this issue Aug 1, 2015 · 4 comments
Closed

Accounts.ui.config bug #4856

SoilChang opened this issue Aug 1, 2015 · 4 comments

Comments

@SoilChang
Copy link

the four options in the configuration

'USERNAME_AND_EMAIL', 'USERNAME_AND_OPTIONAL_EMAIL', 'USERNAME_ONLY', or 'EMAIL_ONLY' (default).

"USERNAME_AND_EMAIL" and "USERNAME_AND_OPTIONAL_EMAIL seem to be the same".

I tried to use "USERNAME_AND_EMAIL" and I still can't get the users to sign in with BOTH username and email.

@stubailo
Copy link
Contributor

stubailo commented Aug 4, 2015

I tried creating a new app, and everything seemed to work for me. Please provide a full reproduction as described in: https://github.com/meteor/meteor/wiki/Contributing-to-Meteor#reporting-a-bug-in-meteor Without a way to replicate your problem, we can't debug and fix it.

@stubailo stubailo closed this as completed Aug 4, 2015
@SoilChang
Copy link
Author

i installed account-ui package "accounts-ui@1.1.5"
I use {{>loginButtons}} to call the template.

in client folder(as instructed by documentation), i have

Accounts.ui.config({
requestPermissions: {
facebook: ['user_likes']
},
passwordSignupFields: 'USERNAME_AND_OPTIONAL_EMAIL',
});

I tried 3 options after that:
1.USERNAME_AND_OPTIONAL_EMAIL

2.USERNAME_AND_EMAIL

3.USERNAME_ONLY

outcome:

  1. the login button offers two fields: [] username or email, [_] password

2.the login button offers two fields: [] username or email, [_] password

3.the login button offers two fields: [] username , [_] password

So the problem is, when I use USERNAME_AND_EMAIL, i don't get 3 fields like
[] username, [] email, [___] password
is it supposed to be like this? if it is, what's the differences between USERNAME_AND_OPTIONAL_EMAIL and USERNAME_AND_EMAIL?

@stubailo
Copy link
Contributor

stubailo commented Aug 5, 2015

@SoilChang I think you're mixing up "login" and "sign up". People only need to put in username and email when they make an account, not when they log in.

@SoilChang
Copy link
Author

Ohhhhhh ya. really sorry. now i see it is working. thank you very much for the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants