src/backend/doc/notes/2024-10-03_email_in_use_checks.md
signup.js only says "email already used" if the one that's
already been used is confirmed.clean_email is updated whenever the email is updatedemail_verification_code
instead of email_verification_linkrequires_email_confirmation is TRUEI'm mostly curious about this state on a user.
It's strange that signup.js would do anything on EXISTING users.
pseudo_user may be populated if req.body.email exists
AND a user with no password exists with that emailuuid_user may be populated if a user exists with the specified
UUID, but it has no usefulness unless uuid_user has the same
id as pseudo_user.uuid_user is only used to set email_confirmation_required to 0
IFF pseudo_user has same id as uuid_user
AND psuedo_user has an email
When does pseudo_user have an email?
uuid_user is only used to set
email_confirmation_required = 0send_confirmation_code is TRUE in REQUESTrequire_email_verification_to_publish_website is TRUE
email_verification_code will be difficult to test because there is
nothing currently in the system that's using it. However, I could try
enabling require_email_verification_to_publish_website locally and
see if this behavior begins to work as expected.
email_verification_link where we can confirm an email. If another email
was already confirmed since the time the link was sent, we need to display
an error message to the user.
Right now there are two handlers:
/user-protected/change-email (UserProtectedEndpointsService)
/change_email/confirm (PuterAPIService)