Use new lockbox method

The old one conflicts with Rails' own new ActiveRecord encryption
feature.
This commit is contained in:
Basti 2022-02-12 14:04:41 -06:00
parent c33637003e
commit c06e58a0fb
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72

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