improve registration and add oauth

This commit is contained in:
Alex Turchyn committed 2023-07-15 13:38:12 +03:00
1 parent f7ef99a624
commit 6f3fe1dd7b
20 files changed
+170 -23

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ class Template < ApplicationRecord
attribute :fields, :string, default: -> { [] }
attribute :schema, :string, default: -> { [] }
attribute :submitters, :string, default: -> { [{ name: DEFAULT_SUBMITTER_NAME, uuid: SecureRandom.uuid }] }
attribute :slug, :string, default: -> { SecureRandom.base58(10) }
attribute :slug, :string, default: -> { SecureRandom.base58(14) }
serialize :fields, JSON
serialize :schema, JSON