mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
add ability to use timestamp server
This commit is contained in:
1 parent
c5d71505ef
commit
ced88476cc
9 files changed
+168
-10
No files matched your search
@@ -71,6 +71,14 @@ module Accounts
|
||||
end
|
||||
end
|
||||
|
||||
def load_timeserver_url(account)
|
||||
if Docuseal.multitenant?
|
||||
Docuseal::TIMESERVER_URL
|
||||
else
|
||||
EncryptedConfig.find_by(account:, key: EncryptedConfig::TIMESTAMP_SERVER_URL_KEY)&.value
|
||||
end.presence
|
||||
end
|
||||
|
||||
def can_send_emails?(_account)
|
||||
return true if Docuseal.multitenant?
|
||||
return true if ENV['SMTP_ADDRESS'].present?
|
||||
|
||||
Reference in new issue
Block a user