Search code examples
laravel-4cartalyst-sentry

How to use reset password on cartalyst sentry


code example come from this

I confused on example code I didn't login and click link from email
and get user id from?

 $user = Sentry::findUserById(1);

Solution

  • the example it not clear I found another function

    $user = Sentry::findUserByResetPasswordCode($code);