How to do extra validation on sign in (using Devise)
-
09-10-2019 - |
Pergunta
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.
Solução
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.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow