jeudi 29 septembre 2016

How to set an optional reset_password_keys for Devise

In a Rails app, the config Devise file has a reset_password_keys option. Is there a way to make one of the keys optional?

Currently I have this setting config.reset_password_keys = [ :email, :account_id ].

I would like to make the :account_id an optional key if there is no account_id present.

Aucun commentaire:

Enregistrer un commentaire