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.
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.
After completing the above two steps, the annoying login verification code in the background of ThinkCMF5.1 is closed.
The operation is still relatively simple, I will record it myself for Xiaobai.