2016-01-21 17:06:09 +01:00
|
|
|
class FranceConnectInformation < ActiveRecord::Base
|
|
|
|
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
|