Using devise for authentication in rails I have two models User and Advertiser
For User I have to use phone_no as authentication_key while for Advertiser I have to email as authentication_key.
If I change it like this then Advertiser model not authenticate and vice versa.How I manage this
config.authentication_keys = [:phone]
Aucun commentaire:
Enregistrer un commentaire