cartalyst/sentry — pull request #51 by fitztrev (2012-10-24 13:10:28+00:00)
Title: Allow for automatic login after password reset

The purpose of this change is to allow you to automatically log the user in via `Sentry::force_login($id)` immediately after the verification link is clicked and the hash is confirmed.

In order to do so, `reset_password_confirm()` must return the user id.

Here's an updated password reset flow that can now be performed:

1. User enters email address on "Forgot password" page
2. Email with reset link sent to user
3. User clicks link and reset hash is confirmed
4. User is automatically logged in and taken to "Update password" page

Because it still returns a non-null value on success, this change should not break any existing implementations (unless somebody is specifically checking for a boolean response, which the example code on the site does not).