@fosterin/persona
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-0 • Public • Published

AdonisJS package starter kit

Email management scanerios

Scanerio 1

  • User A updates their email to "foo@bar.com". This makes it way into the unverified_email column.
  • User B creates an account with "foo@bar.com". This makes it way into both email and unverified_email columns.
  • Now User B has exclusive control over "foo@bar.com". User A, even if they want cannot verify this email and link it to their account. This is because, one email can become primary email on one user account only. Right now (even if unverified), this email is linked as primary email with User B account.
  • So, there should be a CRON job to delete new accounts that has never verified emails.
  • Alternatively, you can setup the VerifyEmail logic to delete unverified accounts when someone else is able to verify the email address linked as primary email with an unverified account.

Scanerio 2

Readme

Keywords

none

Package Sidebar

Install

npm i @fosterin/persona

Weekly Downloads

0

Version

0.0.1-0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

56.3 kB

Total Files

21

Last publish

Collaborators

  • virk