Skip to content

Commit

Permalink
increase tokens length
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBTurchyn committed Jul 8, 2023
1 parent dcbdc9e commit 6fbc81f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/submitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Submitter < ApplicationRecord
belongs_to :submission

attribute :values, :string, default: -> { {} }
attribute :slug, :string, default: -> { SecureRandom.base58(8) }
attribute :slug, :string, default: -> { SecureRandom.base58(10) }

serialize :values, JSON

Expand Down
2 changes: 1 addition & 1 deletion app/models/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(8) }
attribute :slug, :string, default: -> { SecureRandom.base58(10) }

serialize :fields, JSON
serialize :schema, JSON
Expand Down

0 comments on commit 6fbc81f

Please sign in to comment.