Sha256: a147c8ddca0cce25e86f52ffdd83cf6cd83706c5dd4b7148acc5a658fc8dd0c2
Contents?: true
Size: 224 Bytes
Versions: 16
Compression:
Stored size: 224 Bytes
Contents
class CurrentPasswordValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) record.errors.add attribute, 'The password is incorrect.' unless Current.auth.user&.authenticate(value) end end
Version data entries
16 entries across 16 versions & 1 rubygems