adonisjs / auth

Official Authentication package for AdonisJS
https://docs.adonisjs.com/guides/auth/introduction
MIT License
187 stars 65 forks source link

fix: add unique rule to email of auth migration #208

Closed orcuntuna closed 1 year ago

orcuntuna commented 1 year ago

Proposed changes

Default auth migration was updated. I have added .unique() to email. It was allowed to add multiple records with the same email.

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

thetutlage commented 1 year ago

Thanks. A helpful change 👍