Skip to content

Chapter 3 and Chapter 4 Mern skeleton user.model.js need set email field with unique: true? #157

@lifan0913

Description

@lifan0913

In chapter 3 and chapter 4 user.model.js, email field is not set unique, if no unique: true field set. Thus can insert two user with the same email address. I find this may be a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions