Use new lockbox method

The old one conflicts with Rails' own new ActiveRecord encryption
feature.
This commit is contained in:
2022-02-12 14:04:41 -06:00
parent c33637003e
commit c06e58a0fb

View File

@@ -10,8 +10,8 @@ class User < ApplicationRecord
validates_uniqueness_of :email
validates :email, email: true
encrypts :ln_login
encrypts :ln_password
lockbox_encrypts :ln_login
lockbox_encrypts :ln_password
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable