UserIdentify

I have an application where users can login by either email+pass OR facebook. By default, UserIdentify checks for username+password, but in my situation it has to check Facebook-ID OR email+pass, what’s the best way to handle this?

Should I make multiple UserIdentify classes for each login method, or should I try to pass a variable to UserIdentify to indicate which method of authentication it should use?