demarches-normaliennes/app/models/france_connect_information.rb

12 lines
376 B
Ruby
Raw Normal View History

2018-03-06 13:44:29 +01:00
class FranceConnectInformation < ApplicationRecord
belongs_to :user
validates :france_connect_particulier_id, presence: true, allow_blank: false, allow_nil: false
2018-02-22 16:53:29 +01:00
def mandataire_social?(params)
params[:nom].casecmp(family_name).zero? &&
params[:prenom].casecmp(given_name).zero? &&
params[:date_naissance_timestamp] == birthdate.to_time.to_i
end
2017-04-04 15:27:04 +02:00
end