Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of canceling background login verification code by phpcms

Shulou Source: shulou.com Published: 2022-06-02 05:05:47 10月03日 Update

Editor to share with you the method of canceling the background login verification code by phpcms. I hope you will gain a lot after reading this article. Let's discuss it together.

How does phpcms cancel the background login verification code?

The background verification code of the website has always been a feature of most open source programs to enhance background security, which can prevent the background from being violently cracked by programs and other unsafe situations. But as we all know, most of the CAPTCHA is displayed in the form of a picture, and if the CAPTCHA is not displayed, it will cause the background unable to log in. This is not, the editor of the worry-free host encountered the background verification code of the phpcmsV9 program can not be displayed, the verification code is all red ×. As the customer is in a hurry, and the editor has not found the root cause of the problem for the time being, he gave the customer a temporary solution to deal with the background verification code, which is known as "one-size-fits-all": cancel the background verification code. The following editor will share with you the method of canceling the phpcmsV9 background CAPTCHA.

The detailed configuration steps are as follows:

Step one:

Follow the path of the directory to find the file phpcms\ modules\ admin\ index.php

Comment out 33 to 36 lines of code

$code = isset ($_ POST ['code']) & & trim ($_ POST [' code'])? trim ($_ POST ['code']): showmessage (L (' input_code'), HTTP_REFERER); if ($_ SESSION ['code']! = strtolower ($code)) {showmessage (L (' code_error'), HTTP_REFERER);}

Step 2:

Follow the path of the directory to find the file phpcms\ modules\ admin\ templates\ login.tpl.php

Comment out lines 38 to 39

Comment out 38 lines of code

:->

Comment out line 39

Tags: Background validation methods comments code login directory login security functionality most customers situations files programs articles websites paths questions this is not Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple OPPO Reno MariaDB MySQL