سؤال

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top