devise_invitable
devise_invitable copied to clipboard
401 Unauthorized when trying to set password from invite email
Rails 5.1 Ruby 2.5 Devise 4.4.1 Devise Invitable 1.7.2
Standard devise setup, standard devise_invitable setup. Using included views and no controller overrides. When I submit the password after following the link included in the email, I get the following.
- -> /users/invitation/accept?invitation_token=d_Rze5CqGKs58NLqx2qg
Started PUT "/users/invitation" for ::1 at 2018-01-25 19:36:40 -0600
Processing by UsersController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"o0wKqY7peWwI2e+mVdPce2LyyB8oAE9HHe5zR/fu4F7wRuR6q+B479Yfcbh9mqR3N0dgvnMQ/5zwnR1moEd+4w==", "user"=>{"invitation_token"=>"d_Rze5CqGKs58NLqx2qg", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Set my password", "id"=>"invitation"}
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)```
Standard devise setup, standard devise_invitable setup. Using included views and no controller overrides.
If this is the case, it sounds like a major issue. I don't have the time right now, but could you reproduce the behaviour on brand new rails project, to be sure it's not caused by some other logic in your application?