Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top