Laravel认证问题


Laravel Authentication Trouble

在验证用户时遇到一些麻烦。这是我的基本登录功能:http://pastebin.com/a92Mnb7C这是我的HTML: http://pastebin.com/bmAnVSeA表名是users,我可以连接到它。我有一个测试用户:2 .测试test@test.com $2y$10$6stKxV9TSiqFfLPSRffKOO8。OTJs

我已经尝试过散列密码和非散列密码。

验证模式设置为"database"而不是"equolent"。验证表设置为"users"

谁能帮助建议什么是错误或任何故障排除帮助?非常感谢。谢谢!

您的字段名不匹配:

if(Input::has('login_email') AND Input::has('login_password')){
               ^^^^^^^^^^                    ^^^^^^^^^^^^^^^
        if (Auth::attempt(array('email'=>Input::get('email'), 'password'=>Input::get('password')))) {
                                                     ^^^^^^                           ^^^^^^^^

login_email ! = email, login_password ! = password