I'm using Devise -- how can I do an extra validation on sign in?
I want to verify the the account logging in is associated with the current subdomain.
Thanks.
Take a look at this page from the Devise Wiki on GitHub: https://github.com/plataformatec/devise/wiki/How-To:-Customize-user-account-status-validation-when-logging-in
I think that will work for what you are talking about.