1

I'm trying to do a 'basecamp-style' subdomain arrangement. I've got the subdomains working just fine. I'm just trying to restrict login based upon the subdomain, so users are only authorised on subdomains to which they have access.

Where can I add a hook that is executed when devise is performing authorisation to check this?

1 Answer 1

0

Probably the easiest way would be to redefine the class method find_for_authentication in your user model. You can find the devise default implementation in lib/devise/models/authenticatable.rb

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.