蟆城-全新uniapp小说漫画–注释掉登录认证码方法–APP小说源码/会员阅读/月票功能,

登录后台,找到路径文件/www/wwwroot/后台小说网站文件根目录/template/admin/index/login.tpl

复制下面代码,全部替换即可,在登录后台,认证码就被注释掉啦,随便填,即可登录

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?=Web_Name?> - 后台管理登录</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?=Web_Base_Path?>layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?=Web_Base_Path?>admin/css/login.css" media="all">
</head>
<body class="login-bg">
<div class="login layui-anim layui-anim-up">
    <div class="message"><?=Web_Name?>-管理登录</div>
    <div id="darkbannerwrap"></div>
    <form method="post" class="layui-form" >
        <input name="name" placeholder="用户名" autocomplete="off" type="text" lay-verify="required" class="layui-input" >
        <hr class="hr15">
        <input name="pass" lay-verify="required" autocomplete="off" placeholder="密码"  type="password" class="layui-input">
        <hr class="hr15">
        
        <!-- 注释掉认证码字段或去除验证 -->
        <input name="code" autocomplete="off" placeholder="认证码"  type="password" class="layui-input">
        <hr class="hr15">
        
        <input value="登录" lay-submit lay-filter="login" style="width:100%;" type="submit">
    </form>
</div>
<script src="<?=Web_Base_Path?>jquery/jquery.min.js"></script>
<!--[if IE 8]>
<script src="<?=Web_Base_Path?>jquery/jquery-1.9.1.min.js"></script>
<![endif]-->
<script src="<?=Web_Base_Path?>layui/layui.js"></script>
<script>
    $(function () {
        layui.use('form', function(){
            var form = layui.form;
            //监听提交
            form.on('submit(login)', function(data){
                var index = layer.load();
                $.post('<?=links('login','save')?>', data.field, function(res) {
                    layer.close(index);
                    if(res.code == 1){
                        layer.msg('登录成功,请稍后...',{icon: 1});
                        setTimeout(function() {
                            window.location.href = '<?=links('index')?>';
                        }, 1000);
                    }else{
                        layer.msg(res.msg,{icon: 2});
                    }
                });
                return false;
            });
        });
    })
</script>
</body>
</html>
图片[1]-蟆城-全新uniapp小说漫画–注释掉登录认证码方法–APP小说源码/会员阅读/月票功能,-蟆城传奇源码网
© 版权声明
THE END
喜欢就支持一下吧
点赞4410 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容