联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
登陆弹窗提示系统错误是怎么回事如图用的模态框做了一个弹出的登
类型:迅睿CMS 更新时间:2020-06-29 11:13:37

登陆弹窗提示系统错误是怎么回事?如图,用bootstrap的模态框做了一个弹出的登陆,在form里已经加入了

<input type="hidden" name="{csrf_token()}" value="{csrf_hash()}" />

,跨站验证不提示了,但是提示系统错误,怎么回事 ?

截屏2020-06-29 上午9.17.25iShot2020-06-29上午09.18.38iShot2020-06-29上午09.19.08

回帖
  • #1楼    迅睿框架创始人
    2020-06-29 09:24:55
    Chrome 0
  • 胡金海
    #2楼    胡金海
    2020-06-29 09:28:35
    Chrome 0
    抓取一下post数据看看啊,我估计是表单id没对导致的,改一下表单id参数
  • SDK
    #3楼    SDK
    2020-06-29 09:55:10
    Chrome 0
    胡金海表单ID 要改成什么呢 ?是要和模态框的id一致吗
  • SDK
    #4楼    SDK
    2020-06-29 10:16:51
    Chrome 0

    8D6651842A799012DA4447245EA35880
  • 南哥
    #5楼    南哥
    2020-06-29 10:18:57
    Chrome 0

    image
    ,这个才是关键,看他里面的数据
  • SDK
    #6楼    SDK
    2020-06-29 10:31:09
    Chrome 0
    南哥
    iShot2020-06-29上午10.30.27
  • SDK
    #7楼    SDK
    2020-06-29 10:34:19
    Chrome 0
    增加悬赏(设置悬赏)金:10元,希望大家给予帮助!
  • 靠悬赏赚钱买授权
    #8楼    靠悬赏赚钱买授权
    2020-06-29 10:36:44
    Chrome 0

    image
    你这里写错了,用一楼的手册替换这个部分就行了
  • 靠悬赏赚钱买授权
    #9楼    靠悬赏赚钱买授权
    2020-06-29 10:37:20
    Chrome 0
    你没有仔细看一楼发的手册而已
  • SDK
    #10楼    SDK
    2020-06-29 10:44:15
    Chrome 0
    靠悬赏(设置悬赏)赚钱买授权不管用呢,依然报错,还是过不去
    iShot2020-06-29上午10.42.50
    <!-- Button trigger modal --><button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"> 登陆</button> <!-- Modal --><div class="modal fade" style="top:20%;" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> </div> <div class="modal-body"> <div class="portlet-body login"> <div class="row"> <div class="col-md-4"></div> <div class="col-md-8"> <form class="content" id="myform" method="post" novalidate="novalidate"> {dr_form_hidden()} {$form} <div class="form-group"> <div class="input-icon"> <i class="fa fa-user"></i> <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="账号/邮箱/手机" name="data[username]"> </div> </div> <div class="form-group"> <div class="input-icon"> <i class="fa fa-lock"></i> <input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="登录密码" name="data[password]"> </div> </div> {if $is_code} <div class="form-group"> <div class="input-group login-code"> <div class="input-icon"> <i class="fa fa-code"></i> <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="验证码" name="code"> </div> <div class="input-group-btn fc-code"> {dr_code(120, 35)} </div> </div> </div> {/if} <div class="form-actions"> <label class="rememberme mt-checkbox mt-checkbox-outline"> <input type="checkbox" name="remember" value="1"> 记住登录 <span></span> </label> <button type="button" onclick="dr_ajax_member('{dr_now_url(login/index)}', 'myform');" class="btn green pull-right"> 登录 </button> </div> <div class="login-options"> <ul class="login-oauth"> <li> <a href="{Router::oauth_url('qq', 'login')}"> <img src="{THEME_PATH}assets/oauth/qq.png"> </a> </li> <li> <a href="{Router::oauth_url('weibo', 'login')}"> <img src="{THEME_PATH}assets/oauth/weibo.png"> </a> </li> <li> <a href="{Router::oauth_url('weixin', 'login')}"> <img src="{THEME_PATH}assets/oauth/weixin.png"> </a> </li> </ul> </div> <div class="create-account"> <p> <a href="{dr_member_url('register/index')}"> 注册账号 </a> <a href="{dr_member_url('login/find')}"> 找回密码 </a> </p> </div> </form> </div> </div> </div> </div> </div> </div></div>
  • SDK
    #11楼    SDK
    2020-06-29 10:44:43
    Chrome 0
    靠悬赏(设置悬赏)赚钱买授权
    <!-- Button trigger modal -->
    <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
      登陆
    </button> 
    
    <!-- Modal -->
    <div class="modal fade" style="top:20%;" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          
          </div>
          <div class="modal-body">
     
             <div class="portlet-body login">
    
                                    <div class="row">
                                        <div class="col-md-4"></div>
                                        <div class="col-md-8">
    
                                            <form class="content" id="myform" method="post" novalidate="novalidate">
                                                {dr_form_hidden()}
                                                {$form}
                                                <div class="form-group">
                                                    <div class="input-icon">
                                                        <i class="fa fa-user"></i>
                                                        <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="账号/邮箱/手机" name="data[username]">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <div class="input-icon">
                                                        <i class="fa fa-lock"></i>
                                                        <input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="登录密码" name="data[password]">
                                                    </div>
                                                </div>
                                                {if $is_code}
                                                <div class="form-group">
                                                    <div class="input-group login-code">
                                                        <div class="input-icon">
                                                            <i class="fa fa-code"></i>
                                                            <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="验证码" name="code">
                                                        </div>
                                                        <div class="input-group-btn fc-code">
                                                            {dr_code(120, 35)}
                                                        </div>
                                                    </div>
                                                </div>
                                                {/if}
                                                <div class="form-actions">
                                                    <label class="rememberme mt-checkbox mt-checkbox-outline">
                                                        <input type="checkbox" name="remember" value="1"> 记住登录
                                                        <span></span>
                                                    </label>
                                                    <button type="button" onclick="dr_ajax_member('{dr_now_url(login/index)}', 'myform');" class="btn green pull-right"> 登录 </button>
                                                </div>
                                                <div class="login-options">
                                                    <ul class="login-oauth">
                                                        <li>
                                                            <a href="{Router::oauth_url('qq', 'login')}"> <img src="{THEME_PATH}assets/oauth/qq.png"> </a>
                                                        </li>
                                                        <li>
                                                            <a href="{Router::oauth_url('weibo', 'login')}"> <img src="{THEME_PATH}assets/oauth/weibo.png"> </a>
                                                        </li>
                                                        <li>
                                                            <a href="{Router::oauth_url('weixin', 'login')}"> <img src="{THEME_PATH}assets/oauth/weixin.png"> </a>
                                                        </li>
                                                    </ul>
                                                </div>
                                                <div class="create-account">
                                                    <p>
                                                        <a href="{dr_member_url('register/index')}"> 注册账号 </a>
                                                        <a href="{dr_member_url('login/find')}"> 找回密码 </a>
                                                    </p>
                                                </div>
                                            </form>
    
                                        </div>
                                         
                                    </div>
    
                                </div>
    
          </div>
        </div>
      </div>
    </div>
  • 靠悬赏赚钱买授权
    #12楼    靠悬赏赚钱买授权
    2020-06-29 10:47:20
    Chrome 0
    你好不仔细啊,没写对,你看下面是你写的
    image
    手册上是这么写的:
    image
    编程要心细
    满意答案
  • SDK
    #13楼    SDK
    2020-06-29 10:56:27
    Chrome 0
    靠悬赏(设置悬赏)赚钱买授权应该不是这个问题 ,我把手册代码拷贝过来一份,还是这个问题呢
    iShot2020-06-29上午10.55.43
    <!-- Button trigger modal -->
    <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
      登陆
    </button> 
    
    <!-- Modal -->
    <div class="modal fade" style="top:20%;" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          
          </div>
          <div class="modal-body">
     
            <form class="content" id="loginform" method="post" novalidate="novalidate">
                {dr_form_hidden()}
                <div class="form-group">
                    <div class="input-icon">
                        <i class="fa fa-user"></i>
                        <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="账号/邮箱/手机" name="data[username]">
                    </div>
                </div>
                <div class="form-group">
                    <div class="input-icon">
                        <i class="fa fa-lock"></i>
                        <input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="登录密码" name="data[password]">
                    </div>
                </div>
                {if $ci->member_cache['login']['code']}
                <div class="form-group">
                    <div class="input-group login-code">
                        <div class="input-icon">
                            <i class="fa fa-code"></i>
                            <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="验证码" name="code">
                        </div>
                        <div class="input-group-btn fc-code">
                            {dr_code(120, 35)}
                        </div>
                    </div>
                </div>
                {/if}
                <div class="form-actions">
                    <label class="rememberme mt-checkbox mt-checkbox-outline">
                        <input type="checkbox" name="remember" value="1"> 记住登录
                        <span></span>
                    </label>
                    <button type="button" onclick="dr_ajax_member('{dr_member_url('login/index')}', 'loginform');" class="btn green pull-right"> 登录 </button>
                </div>
            </form>
    
          </div>
        </div>
      </div>
    </div>
  • SDK
    #14楼    SDK
    2020-06-29 11:01:43
    Chrome 0

    iShot2020-06-29上午11.01.23
  • 若凌
    #15楼    若凌
    2020-06-29 11:06:23
    Chrome 0
    302了大哥,你应该是服务器有什么问题吧,应该是200,不应该是302,302是跳转了
    image
  • 吕布
    #16楼    吕布
    2020-06-29 11:08:13
    Chrome 0
    手动访问这个地址,看看有木有跳转的情况
    image
    如果地址不跳转无变化就应该正常的
  • SDK
    #17楼    SDK
    2020-06-29 11:09:13
    Chrome 0
    若凌 是的 我看到302了
  • SDK
    #18楼    SDK
    2020-06-29 11:13:17
    Chrome 0
    折腾半天是浏览器缓存问题,清理下缓存好了,,,,,fuck!!!
  • SDK
    #19楼    SDK
    2020-06-29 11:13:37
    Chrome 0
    @靠悬赏(设置悬赏)赚钱买授权:感谢!是浏览器缓存问题 ,,,,,