As I know, devise has only email and password validation, which can be reconfigured in the initializer devise.rb:
# ==> Configuration for :validatable
How do I add confirmation for custom fields that have been added to the devise_invitable prompt form?
For example, I need a check for the first_ and last_ names in the form:
= simple_form_for resource, :as => resource_name, :url => invitation_path(resource_name) do |f| = f.input :first_name = f.input :last_name = f.input :email = f.button :submit
Thanks in advance!
source share