无法设法登录任何人的想法?我仍然得到重定向到登录页面用户登录laravel 4
Route::post('login', function() {
// get POST data
$email = Input::get('username');
$password = Input::get('password');
if (Auth::attempt(array('email' => $email,'password' => $password)))
{
return Redirect::to('home');
}
else
{
// auth failure! lets go back to the login
return Redirect::to('login')
->with('login_errors', true);
}
});
你有没有改变的用户模型?同时告诉我们你的桌子上有什么。请注意,在查询之前,您的表中的密码是否由于Auth散列密码而散列。 – fl3x7 2013-03-07 18:17:01
@ fl3x7我也处于类似的情况。你能否详细说明你的附注。这可能是解决问题的方法。谢谢 – 2014-03-09 22:21:41
@JeyKeu有关哈希的更多详细信息,请参见:http://laravel.com/docs/security#storing-passwords – fl3x7 2014-03-11 12:57:02