chore(devise): drop unmaintained dependencie
This commit is contained in:
parent
be2318b128
commit
1e928a277d
4 changed files with 10 additions and 7 deletions
1
Gemfile
1
Gemfile
|
@ -23,7 +23,6 @@ gem 'delayed_cron_job' # Cron jobs
|
|||
gem 'delayed_job_active_record'
|
||||
gem 'delayed_job_web', '>= 1.4.4'
|
||||
gem 'devise' # Gestion des comptes utilisateurs
|
||||
gem 'devise-async'
|
||||
gem 'devise-i18n'
|
||||
gem 'devise-two-factor'
|
||||
gem 'discard'
|
||||
|
|
|
@ -200,9 +200,6 @@ GEM
|
|||
railties (>= 4.1.0)
|
||||
responders
|
||||
warden (~> 1.2.3)
|
||||
devise-async (1.0.0)
|
||||
activejob (>= 5.0)
|
||||
devise (>= 4.0)
|
||||
devise-i18n (1.9.2)
|
||||
devise (>= 4.7.1)
|
||||
devise-two-factor (4.0.2)
|
||||
|
@ -820,7 +817,6 @@ DEPENDENCIES
|
|||
delayed_job_active_record
|
||||
delayed_job_web (>= 1.4.4)
|
||||
devise
|
||||
devise-async
|
||||
devise-i18n
|
||||
devise-two-factor
|
||||
discard
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
class SuperAdmin < ApplicationRecord
|
||||
include PasswordComplexityConcern
|
||||
|
||||
devise :rememberable, :trackable, :validatable, :lockable, :async, :recoverable,
|
||||
devise :rememberable, :trackable, :validatable, :lockable, :recoverable,
|
||||
:two_factor_authenticatable, :otp_secret_encryption_key => Rails.application.secrets.otp_secret_key
|
||||
|
||||
def enable_otp!
|
||||
|
@ -58,4 +58,8 @@ class SuperAdmin < ApplicationRecord
|
|||
|
||||
user
|
||||
end
|
||||
|
||||
def send_devise_notification(notification, *args)
|
||||
devise_mailer.send(notification, self, *args).deliver_later
|
||||
end
|
||||
end
|
||||
|
|
|
@ -38,7 +38,7 @@ class User < ApplicationRecord
|
|||
|
||||
# Include default devise modules. Others available are:
|
||||
# :confirmable, :lockable, :timeoutable and :omniauthable
|
||||
devise :database_authenticatable, :registerable, :async,
|
||||
devise :database_authenticatable, :registerable,
|
||||
:recoverable, :rememberable, :trackable, :validatable, :confirmable, :lockable
|
||||
|
||||
self.ignored_columns = [:administrateur_id, :instructeur_id, :expert_id]
|
||||
|
@ -249,6 +249,10 @@ class User < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def send_devise_notification(notification, *args)
|
||||
devise_mailer.send(notification, self, *args).deliver_later
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def does_not_merge_on_self
|
||||
|
|
Loading…
Reference in a new issue