FastAdmin 的 captcha 是如何来的?

FastAdmin 的 captcha 是如何来的?

如何打开 FastAdmin 的验证吗?

文件位置 C:wwwfastadminapplicationconfig.php
改 login_captcha 为 true 即可

    //FastAdmin配置
    'fastadmin'              => [
        //是否开启前台会员中心
        'usercenter'          => true,
        //登录验证码
        'login_captcha'       => true,
        //登录失败超过10则1天后重试
        'login_failure_retry' => true,
        //是否同一账号同一时间只能在一个地方登录
        'login_unique'        => false,
        //登录页默认背景图
        'login_background'    => "/assets/img/loginbg.jpg",
        //是否启用多级菜单导航
        'multiplenav'         => false,
        //自动检测更新
        'checkupdate'         => false,
        //版本号
        'version'             => '1.0.0.20181031_beta',
        //API接口地址
        'api_url'             => 'https://api.fastadmin.net',
    ],

分析

从这里可以看到验证码的 url 是 http://test.fastadmin.tk/captcha
那这个 url 是哪里定义的呢?找到 以下这个地址就可以看到。
C:wwwfastadminvendor opthink hink-captchasrchelper.php

	hinkRoute::get('captcha/[:id]', "\think\captcha\CaptchaController@index");
原文地址:https://www.cnblogs.com/F4NNIU/p/9999440.html