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

Why use "username" as identity field and not the "id"? #35

Open
rafis opened this issue Nov 6, 2016 · 1 comment
Open

Why use "username" as identity field and not the "id"? #35

rafis opened this issue Nov 6, 2016 · 1 comment

Comments

@rafis
Copy link

rafis commented Nov 6, 2016

Why you use "username" as identity field, while most auth engines I have encountered in PHP uses used_id as identity?

@kennethklee
Copy link

by default, this module uses id as the primary key. see

id: {
type: Sequelize.INTEGER,
autoIncrement: true,
primaryKey: true
},

username is just a normal field. if PHP uses id as a username, it's very very incorrect. i have enough trouble remembering my ICQ number.

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