How to do extra validation on sign in (using Devise)
-
09-10-2019 - |
سؤال
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.
لا تنتمي إلى StackOverflow