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

id instead of _id with dm-core #18

Open
Incubatio opened this issue Jun 5, 2011 · 0 comments
Open

id instead of _id with dm-core #18

Incubatio opened this issue Jun 5, 2011 · 0 comments
Assignees

Comments

@Incubatio
Copy link

I'm using this authentication system with datamapper over mongo-db.
Signup works but insert a dm-user with two id field:

  • "_id" that contains the identifier of the records
  • "id" which is null.

During a log in, if the user and password are correct, the user is logged in as the user nil, and is consequently staying a guest.

Edit: I fixed my particular problem by overriding the DmUsers class and replacing Serial by the type: ObjectId and by adding "require 'mongo_adapter'" which include the support for that specific mongo type

@ghost ghost assigned cmhobbs Jul 13, 2011
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