Webler-Group / webler-codes

4 stars 0 forks source link

Create Default Profile for Verified Users #51

Open Bytenol opened 3 months ago

Bytenol commented 3 months ago

We need to ensure that a default profile is automatically created for users who are verified, either through pgAdmin or by verifying their email. This profile should persist even if the verification status is later revoked.

Tasks:

Suggested Implementation:

  1. Create a database trigger that checks the isVerified status.

  2. The trigger should only execute the first time isVerified is set to true, ensuring a default profile is created.

  3. Ensure the profile remains in the database regardless of any future changes to the isVerified status.