Sha256: a0f0b60cc995ce0676ae46255d022f38ea1f3fcc99b88be6db004616e0f5c0d8
Contents?: true
Size: 434 Bytes
Versions: 6
Compression:
Stored size: 434 Bytes
Contents
module Clearance module PasswordStrategies module Fake extend ActiveSupport::Concern def authenticated?(password) encrypted_password == password end def encrypt(password) password end def password=(new_password) @password = new_password if new_password.present? self.encrypted_password = encrypt(password) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems