foo290 / Django-Verify-Email

A two-step verification for new accounts by verifying email.
GNU General Public License v3.0
104 stars 33 forks source link

Migration path to add this library into existing project #73

Open mojeto opened 1 year ago

mojeto commented 1 year ago

Hi there, what is the best way to add verify_email into existing project that has active users already? I want the users to gradually verify their emails without affecting the way they use rest of the system much. If I install this library it expects linkcounter one to one relation to exist for each user. But this related model instance gets created for new users only. What is the migration to mitigate this? Should I create a data migration that creates verify_email_linkcounter data entry for each existing user? Should the default sent_count be zero in this case?