Home > Backend Development > PHP Tutorial > 想给phpmyadmin加一个验证码?但找不到验证的地方,可否告知一上

想给phpmyadmin加一个验证码?但找不到验证的地方,可否告知一上

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:58:36
Original
950 people have browsed it

想给phpmyadmin加一个验证码??但找不到验证的地方,可否告知一下
想给phpmyadmin加一个验证码??但找不到验证的地方,可否告知一下。



毕竟没有验证码很容易被社工的。同时我也想JS加密密码,然后再用PHP解密。

知道的告知一下。谢谢。
------解决方案--------------------

本帖最后由 xuzuning 于 2012-12-20 16:46:41 编辑 登录表单在 libraries/auth/cookie.auth.lib.php 240 行附近
有关用户名的操作在该文件450行附近
    if (! empty($_REQUEST['pma_username'])) {<br />
        // The user just logged in<br />
        $GLOBALS['PHP_AUTH_USER'] = $_REQUEST['pma_username'];<br />
        $GLOBALS['PHP_AUTH_PW']   = empty($_REQUEST['pma_password']) ? '' : $_REQUEST['pma_password'];<br />
        if ($GLOBALS['cfg']['AllowArbitraryServer'] && isset($_REQUEST['pma_servername'])) {<br />
            $GLOBALS['pma_auth_server'] = $_REQUEST['pma_servername'];<br />
        }<br />
        return true;<br />
    }<br />
Copy after login

phpmysqladmin 本身不需要验证用户名和口令的真伪
因为户名和口令是给 mysql 用的,错了就连接不上数据库
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