Created
May 23, 2013 11:17
-
-
Save aranw/5635354 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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