DiscoverMeteor / book

17 stars 0 forks source link

Accounts asks for email, not username, throws off "Submitted By" #404

Closed BrooklynC closed 9 years ago

BrooklynC commented 9 years ago

I added the same package as you have used (ian:accounts-ui-bootstrap-3). Most everything works fine when I run the app. However, my accounts layout (in the top right) is very different than the one in your instance, even though it is using the same package. First, it says Sign In/Join while yours reads Sign In/Up. Mine also asks for an email address when creating a login, rather than a username. That wouldn't be a problem, however since {{author}} is calling for user.username, my posts only show "submitted by" without the name of the author. I tried changing the code in lib/collections/posts.js to user.email and that doesn't work.

How would the results appear different even if on the same package?

tmeasday commented 9 years ago

Hi @BrooklynC -- it's possible it looks different because the screen shots are a little out of date.

The more fundamental problem about username vs email is I'm guessing because you missed the line:

Accounts.ui.config({
  passwordSignupFields: 'USERNAME_ONLY'
});
BrooklynC commented 9 years ago

Tom, thanks so much...turns out I stupidly missed the "_" in the line you referenced. Changed the whole result.

Brendan

Sent from my iPhone

On Feb 12, 2015, at 9:07 PM, Tom Coleman notifications@github.com wrote:

Hi @BrooklynC -- it's possible it looks different because the screen shots are a little out of date.

The more fundamental problem about username vs email is I'm guessing because you missed the line:

Accounts.ui.config({ passwordSignupFields: 'USERNAME_ONLY' }); — Reply to this email directly or view it on GitHub.