Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails/Devise: valid_password? method returns nil

In my app there are two kinds of users (Athletes & Users). The Athlete model extends the User model and the regular user model assigns different roles to other kinds of users.

For some reason one some of my users with a certain kind of role, the valid_password? method is not working. This is for users who have been invited via the invitable devise module. Any one else run into this? This is causing my app to not work properly where invited users cannot log in

like image 617
dennismonsewicz Avatar asked Oct 27 '25 08:10

dennismonsewicz


1 Answers

This can be fixed by setting the invitation_token to nil.

like image 168
germs12 Avatar answered Oct 29 '25 21:10

germs12



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!