Duplicated email

Hello everyone,

I state that I’m new in this forum (and in the world of Yii).

I’ve a problem with the email validator of the login form.

It works great, but, in my case, I need to allow inserting duplicated email addresses (so not to display “This user’s email address already exists.”). I want to have more users with the same email address.

I don’t know how to do it. Is there anyone that can help me?

(sorry for my English)

Thanks for your reply.

I’ve already solved the problem =)

In the file “RegistrationForm.php” (that I have in /testdrive/protected/modules/user/models/ because I’ve integrated an extension) I have deleted the follow string:

[center]array(‘email’, ‘unique’, ‘message’ => UserModule::t(“This user’s email adress already exists.”)),[/center]

Then, I’ve deleted from the database the UNIQUE INDEX of the ‘email’ field.

Now it works with the duplicated email addresses.