문제

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