modified: SRC/app/Http/Controllers/LoginController.php
modified: SRC/resources/views/auth/reset.blade.php
This commit is contained in:
parent
bfbe7809d7
commit
6ccba8eeba
@ -85,7 +85,7 @@ class LoginController extends Controller {
|
||||
|
||||
public function update($token)
|
||||
{
|
||||
$credentials = array('token' => Input::get('token'), 'password' => Input::get('password'), 'password_confirmation' => Input::get('password_confirmation'));
|
||||
$credentials = Input::only('email', 'password','password_confirmation','token');
|
||||
$response = Password::reset($credentials, function($user, $password)
|
||||
{
|
||||
$user->password = Hash::make($password);
|
||||
|
@ -21,6 +21,13 @@
|
||||
<form class="form-horizontal" role="form" method="POST" action="/password/reset/{{ $token }}">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">Email</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" name="email">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
|
Reference in New Issue
Block a user