sentinel icon indicating copy to clipboard operation
sentinel copied to clipboard

Reminder::complete() returns true, not updating password

Open shampine opened this issue 9 years ago • 1 comments

Password remains the same after a password reset and a successful call of reminder complete.

E.g.

  1. Current password is set to 'password'
  2. Run reset and receive link with reminder code
  3. Enter new password 'Password1' and be redirected to login

Password hash on Users table is not updating, complete still returns true. Step debugged through it and didn't see an initial issue in IlluminateReminderRepository::complete(). Might be something with persistence of the data on $reminder->save()?

shampine avatar Mar 26 '17 21:03 shampine

Resolved::

This occurred because of modifying the Config for Cartalyst.Sentinel to utilize:

    'users' => [
        // 'model' => 'Cartalyst\Sentinel\Users\EloquentUser',
        'model' => 'App\Models\Users',
    ],

As on the Users model I have extended EloquentUser. Because this is set the password column must be added as a $fillable on the Users::class. Closing ticket.

Thanks for the great package. Cheers.

shampine avatar Mar 26 '17 21:03 shampine