brockf / hero

Hero Framework: A powerful Content Management System (CMS) and eCommerce framework built on CodeIgniter.
Other
53 stars 45 forks source link

Update user_model.php #11

Closed johnfraney closed 9 years ago

johnfraney commented 9 years ago

Use built-in "is_unique" check for username/email on registration. The only downside of this is that the error message is less helpful: "The %s field must contain a unique value", but this is much more concise.

I believe that $CI->form_validation->set_message() could be used to provide a more helpful error message.

brockf commented 9 years ago

Will this cause an issue for emails that exist but are attached to deleted accounts, though?