我是Laravel的新手,我在使用4.2版本的系统上做了一些测试。我正试图按照Documentation重设密码。到目前为止,我可以发布我的电子邮件进行密码重置,并在我的电子邮件中获得令牌。带密码的密码重置laravel 4.2
当我从与令牌电子邮件打开URL我得到这个错误:
exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException'
的网址是:http://example.com/reset/20e2535a11f7c88d1132c55c752a3a8569adbf5f
这是我的路线
Route::get('/password', ['uses' => '[email protected]']);
Route::get('/reset', ['uses' => '[email protected]']);
这是RemindersController
public function getReset($token = null)
{
if (is_null($token)) App::abort(404);
return View::make('site.reset')->with('token', $token);
}
而且从文档的
<form action="{{ action('[email protected]') }}" method="POST">
<input type="hidden" name="token" value="{{ $token }}">
<input type="email" name="email">
<input type="password" name="password">
<input type="password" name="password_confirmation">
<input type="submit" value="Reset Password">
</form>
我理解错误..它是说,路径/文件中找不到但它的存在..如果
这里看看http://stackoverflow.com/questions/29241969/reset-password-without-token-in-laravel-4-2 – Blueblazer172
@ Blueblazer172我想用令牌.. – VLS
然后看[这里](https://laracasts.com/discuss/channels/laravel/get-a -password-reset-token/answers/90648)或[here](htt p://stackoverflow.com/a/26362002/5930557) – Blueblazer172