Skip to content

id instead of _id with dm-core #18

@Incubatio

Description

@Incubatio

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions