Laravel 6.PHP 7.4。我正在建立一個(gè)網(wǎng)站。由于 Laravel 提供了默認(rèn)的身份驗(yàn)證登錄和注冊(cè)表單。我將登錄表單放入導(dǎo)航中,而將注冊(cè)表單放在注冊(cè)頁(yè)面上。現(xiàn)在我想讓用戶在注冊(cè)頁(yè)面上提供另一個(gè)登錄表單。我設(shè)計(jì)了另一個(gè)登錄表單,在提交時(shí)我將其引用到相同的登錄路線,但它不起作用。錯(cuò)誤是 419 頁(yè)已過(guò)期。我還閱讀了有關(guān) MutiAuth 的內(nèi)容,但這是我將用于我的管理面板的內(nèi)容。有什么解決辦法嗎?注冊(cè).blade<form method="post" action="{{ route('login') }}" onsubmit="if(document.getElementById('agreed').checked) { return true; } else { alert('Please indicate that you have read and agree to the privacy policy and terms of use'); return false; }"> <div class="input-group form-group"> <div class="input-group-prepend"> <span class="input-group-text"><i class="fas fa-user"></i></span> </div> <input type="email" required name="email" class="form-control" placeholder="email address"> </div> <div class="input-group form-group"> <div class="input-group-prepend"> <span class="input-group-text"><i class="fas fa-key"></i></span> </div> <input type="password" required name="password" class="form-control" placeholder="password"> </div> <div class="form-group"> <input type="checkbox" name="checkbox" value="check" id="agreed" /> <small>I agree to the privacy policy and terms of use</small> </div> <div class="form-group"> <input type="submit" value="Login" class="btn float-right login_btn"> </div> </form> 路線Route::get('login', [ 'as' => 'login', 'uses' => 'Auth\LoginController@showLoginForm']);
- 1 回答
- 0 關(guān)注
- 117 瀏覽
添加回答
舉報(bào)
0/150
提交
取消