mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
Remove use of devise token_authenticable
Our production servers don't show any use of this feature. The associated column is nil for all users. The gem has not been updated in seven years and it's blocking an important upgrade of devise.
This commit is contained in:
@@ -8,7 +8,7 @@ module Spree
|
||||
|
||||
searchable_attributes :email
|
||||
|
||||
devise :database_authenticatable, :token_authenticatable, :registerable, :recoverable,
|
||||
devise :database_authenticatable, :registerable, :recoverable,
|
||||
:rememberable, :trackable, :validatable, :omniauthable,
|
||||
:encryptable, :confirmable,
|
||||
encryptor: 'authlogic_sha512', reconfirmable: true,
|
||||
|
||||
@@ -138,11 +138,6 @@ Devise.setup do |config|
|
||||
config.case_insensitive_keys = [:email]
|
||||
end
|
||||
|
||||
Devise::TokenAuthenticatable.setup do |config|
|
||||
# Defines name of the authentication token params key
|
||||
config.token_authentication_key = :auth_token
|
||||
end
|
||||
|
||||
if ENV["OPENID_APP_ID"].present? && ENV["OPENID_APP_SECRET"].present?
|
||||
Devise.setup do |config|
|
||||
site = if Rails.env.development?
|
||||
|
||||
Reference in New Issue
Block a user