You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If sign-in is successful, no other authentication method will be run, but if it doesn't (the authentication params were missing, or incorrect) then Devise takes control and tries to authenticate_user! with its own modules. That behaviour can however be modified for any controller through the fallback option (which defaults to fallback: :devise).
I created a controller that allow for Admin and user to update, following the doc to use fallback: :none
This works for the User, but when I try to send a request with valid Admin authentication, it always fails. Meaning that the authentication handler for User is still called.
Can someone give me a guide for this case?
The text was updated successfully, but these errors were encountered:
The documentation stated that
I created a controller that allow for Admin and user to update, following the doc to use
fallback: :none
This works for the User, but when I try to send a request with valid Admin authentication, it always fails. Meaning that the authentication handler for User is still called.
Can someone give me a guide for this case?
The text was updated successfully, but these errors were encountered: