This commit is contained in:
DonRenando
2015-03-16 16:01:52 +01:00
90 changed files with 122 additions and 10 deletions

0
SRC/app/Http/Controllers/APIController.php Normal file → Executable file
View File

View File

@ -89,12 +89,12 @@ class LoginController extends Controller {
return View::make('auth.reset')->with('token', $token);
}
public function update($token)
public function update()
{
$credentials = Input::only('email', 'password','password_confirmation','token');
$response = Password::reset($credentials, function($user, $password)
{
$user->password = Hash::make($password);
$user->motdepasse = Hash::make($password);
$user->save();
});