Sha256: e78017d90888545a4b84906abf693bce05adbc5270273baf19755f728ecf28ab
Contents?: true
Size: 674 Bytes
Versions: 10
Compression:
Stored size: 674 Bytes
Contents
# frozen_string_literal: true module Devise module Models # SecurityQuestionable is an accessible add-on for visually handicapped people, # to ship around the captcha with screenreader compatibility. # # You need to add two text_field_tags to the associated forms (unlock, # password, confirmation): # :security_question_answer and :captcha # # And add the security_question to the register/edit form. # f.select :security_question_id, SecurityQuestion.where(locale: I18n.locale).map{|s| [s.name, s.id]} # f.text_field :security_question_answer module SecurityQuestionable extend ActiveSupport::Concern end end end
Version data entries
10 entries across 10 versions & 1 rubygems