Skip to content

Instantly share code, notes, and snippets.

@aranw
Created May 23, 2013 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aranw/5635354 to your computer and use it in GitHub Desktop.
Save aranw/5635354 to your computer and use it in GitHub Desktop.
public function processReset($token)
{
$credentials = array('email' => Input::get('email'));
return Password::reset($credentials, function($user, $password)
{
$user->password = Hash::make($password);
$user->save();
return Redirect::to('users/login');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment