pythonprobr / pythonpro-website

GNU Affero General Public License v3.0
61 stars 63 forks source link

Already existing user causes error when subscribing to email marketing #2649

Open renzon opened 4 years ago

renzon commented 4 years ago

image

Returning error:

{result_code: 0, result_message: 'Esse e-mail já existe no sistema. Por favor escolha outro e-mail.', result_output: 'json'}

renzon commented 4 years ago

To reproduce: there must be a user on AC with "user@mail.com" and with id, let´s say 1. User has another account, let´s say with id 2 and email "otheruser@email.com". When she tries to register again, SPP form will fill her email "otheruser@email.com". But she edit it to bem "user@email.com". This way system will query AC for user with id 2 and will try to edit her email to "user@email.com". But since this email is already taken, this error occurs. Not sure how to solve this.