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

AUTH_USERID_FIELD option #46

Closed
asdine opened this issue Apr 21, 2013 · 2 comments
Closed

AUTH_USERID_FIELD option #46

asdine opened this issue Apr 21, 2013 · 2 comments
Labels

Comments

@asdine
Copy link

asdine commented Apr 21, 2013

Hello!

Would it be a good idea to use an _id field instead of the AUTH_USERFIELD_NAME to allow a specific user to access/update only the resources he created?
If a user changes his username, he would have to change every document he own and update their username field.

@nicolaiarocci
Copy link
Member

Hello, you can set AUTH_USERFIELD_NAME to whatever field name you want, ID_FIELD (_id) included. See the docs (probably need to expand with a code snippet).

@asdine
Copy link
Author

asdine commented Apr 22, 2013

Thanks! A code snippet for that would be greatly appreciated!

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

No branches or pull requests

2 participants