You got the spam during registration???? even adding after google CAPTCHA??
Its a good practice to add the CAPTCHA in your magento store during login/signup but today era some smart bot system bypass this CAPTCHA code and send anonymous mail id, which might impact your site performance because many of the search engine (like google, bing, yahoo, etc) checks for the spam contents for site and accordingly define the website rank. So to get rid of from all these make a defined length( As i have put 50 ) for the text field, because most of the bot almost always enters email of length greater than 150, follow the below steps to change config:
Go with to the database table named customer_eav_attribute and edit the record 5 (attribute_id 5).
Edit content table column
attribute_id 5 is the first name and the values in the validate_rules are checked before it update to the database.
Happy Learning 🙂
Praveen Maurya work in e-commerce domain having knowledge of Plugin development in Magento 1.x/2.x, Drupal, Woo-Commerce, PrestaShop, Opencart and other e-commerce solution. When he is not engrossed with anything related to these, he loves to explore new things.