improve registration and add oauth

This commit is contained in:
Alex Turchyn
2023-07-14 22:33:42 +03:00
parent f7ef99a624
commit 6f3fe1dd7b
20 changed files with 170 additions and 23 deletions
+15 -1
View File
@@ -16,7 +16,7 @@ module Accounts
new_template = template.dup
new_template.account = new_account
new_template.slug = SecureRandom.base58(10)
new_template.slug = SecureRandom.base58(14)
new_template.save!
@@ -28,6 +28,20 @@ module Accounts
new_account
end
def create_default_template(account)
template = Template.find(1)
new_template = Template.find(1).dup
new_template.account_id = account.id
new_template.slug = SecureRandom.base58(14)
new_template.save!
Templates::CloneAttachments.call(template: new_template, original_template: template)
new_template
end
def load_signing_certs(account)
certs =
if Docuseal.multitenant?