Method: EncryptedPassword#password=

Defined in:
lib/app/models/concerns/encrypted_password.rb

#password=(pass) ⇒ Object

Set the password



35
36
37
38
39
40
# File 'lib/app/models/concerns/encrypted_password.rb', line 35

def password=(pass)
  set encrypted_password: cipher.encrypt_and_sign(pass)
rescue StandardError => error
  App47Logger.log_error("Unable to store password for #{inspect}", error)
  nil
end