Solve the problem that the number 0 is displayed after the PHPCMS member registration is submitted

Source: Internet
Author: User
Tags php and

Some websites that use the phpcms kernel may have some customers who can register. Some customers submit the registration and the registration result shows 0, but nothing else. Baidu has a large circle, which is a js issue. So did ant brother. I have been worried for a long time.
In fact, the reason is very simple. For division, we have changed all 0 returned during registration so that they will return different results.




In this way, you can determine the row based on the returned error number. Finally, the password field is determined. To take a closer look. The original filter is is_badword. Locate the filter location



Open global. func. php and search for is_badword to see this filter. Someone must like to add a symbol in the password, at least I like it.

Locate the problem and solve it. The temporary solution is as follows:
1. After the user submits the ticket, the user will be reminded that the password cannot contain special characters.

The following figure shows the x effect after execution:

The 2nd method is to remove this filter directly and you should write it. I will not go into detail.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.