mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
use sidekiq
This commit is contained in:
1 parent
9539c476c0
commit
3034c00bb3
41 files changed
+332
-132
No files matched your search
@@ -81,6 +81,12 @@ class User < ApplicationRecord
|
||||
true
|
||||
end
|
||||
|
||||
def sidekiq?
|
||||
return true if Rails.env.development?
|
||||
|
||||
role == 'admin'
|
||||
end
|
||||
|
||||
def self.sign_in_after_reset_password
|
||||
if PasswordsController::Current.user.present?
|
||||
!PasswordsController::Current.user.otp_required_for_login
|
||||
|
||||
Reference in new issue
Block a user