Use new lockbox method
The old one conflicts with Rails' own new ActiveRecord encryption feature.
This commit is contained in:
parent
c33637003e
commit
c06e58a0fb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user