Home > CMS Tutorial > WordPress > body text

How to cancel verification code in dedecms

藏色散人
Release: 2023-02-21 10:52:09
Original
2475 people have browsed it

dedecms How to cancel the verification code: 1. Open the "inc_safe_config.php" file and delete the 6 in "$safe_gdopen = '1,2,3,5,6';"; 2. Open " "login.htm" file, delete or comment the specific HTML code of the verification code.

How to cancel verification code in dedecms

The operating environment of this tutorial: Windows 10 system, DedeCMS 5.7, DELL G3 computer

How to cancel the verification code in dedecms?

dedecms removes the background login verification code:

When using dedecms to build a website in batches, you usually directly package and copy the files, and then import them into the database to create a new website. But sometimes the backend has been unable to log in, prompting a verification code error. Then we want to know how to turn off the verification code, and now we will help you solve the problem of removing the background login verification code for Dreamweaver.

We know that dedecms backend normally closes verification in [System] → [Verification Code Security Settings] → turn on system verification code, and uncheck [Backend Login], but this requires logging in to the backend to operate. . In fact, as long as you pay attention, you will find that modifying the verification parameters in the background parameters is actually equivalent to modifying a file inside the website. However, the options for operating in the background are limited and no more modification interfaces are provided. In fact, many things are only deemed unnecessary by the official. Modification, so there is no entry for modification in the background, so we might as well find the verified configuration file and modify it, then we will have a lot of operational permissions.

In the background [Verification Code Security Settings], it is said that the modified save actually modifies the data\safe\inc_safe_config.php file, which is a configuration file.

Just delete the 6 in $safe_gdopen = '1,2,3,5,6';. This will remove the DreamWeaver management backend verification code, and there is no need to go Make tedious settings.

Another method:

1. Edit and open the dede\login.php file in the root directory. dede is the backend directory. If you rename the backend directory, enter the file after you renamed it. Open the login.php file in the directory editor.

2. Find if($validate==” || $validate != $svali) and replace it with if(false)

3. Edit and open the background login template File dede/templets/login.htm, delete or comment the specific HTML code of the following verification code:

<li><span>验证码:</span>
          <input name=”validate” type=”text” id=”vdcode” style=’width:50px;text-transform:uppercase;’ />
          <img id=”vdimgck” src=”../include/vdimgck.php” alt=”看不清?点击更换” align=”absmiddle” style=”cursor:pointer” onclick=”this.src=this.src+’?&#39;” />
</li>
Copy after login

Recommended learning: dedecms tutorial

The above is the detailed content of How to cancel verification code in dedecms. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template