ThinkCMF 5.1.1 version: the method of closing the background login verification code of the website

I just came into contact with ThinkCMF and installed ThinkCMF version 5.1.1. After installing the framework, there is a verification code for each background login, which is troublesome, so I studied how to turn off the verification code of the background administrator.

In fact, the method of closing is relatively simple, and it is not much different from the previous version, mainly because the location of the directory is more difficult to find.

The first is to find the PublicController.php file

The location of PublicController.php is: vendor/thinkcmf/cmf-app/src/admin/controller directory.

After finding it, comment out the code related to the verification code, which is about line 50-67.
insert image description here

Second, find the login.html file

The location of login.html is: public/themes/admin_simpleboot3/admin directory.

After finding it, also comment out the code related to the verification code, which is about line 48-54.
insert image description here

After completing the above two steps, the annoying login verification code in the background of ThinkCMF5.1 is closed.

insert image description here

The operation is still relatively simple, I will record it myself for Xiaobai.

Guess you like

Origin blog.csdn.net/whoas123/article/details/90318806
Recommended