Closed revgum closed 6 years ago
The publications controller needs to "login" the associated user when the claim link is used. This bypasses the regular user authentication and logs in the user associated with claim_link passed in on the query parameters.
In PublicationsController
skip_before_action :authenticate_user!, only: [:claim]
before_action :login_claim_link_user, only: [:claim]
claim_link
sign_in(@user)
fix by #176
Descriptive summary
The publications controller needs to "login" the associated user when the claim link is used. This bypasses the regular user authentication and logs in the user associated with claim_link passed in on the query parameters.
Expected behavior
In PublicationsController
skip_before_action :authenticate_user!, only: [:claim]
before_action :login_claim_link_user, only: [:claim]
claim_link
from paramssign_in(@user)
)