From 16757acbe0a6d56c8b15d5ac64b85b06dbdbe812 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Sat, 8 Jul 2023 21:05:29 +0300 Subject: [PATCH] increase tokens length --- app/models/submitter.rb | 2 +- app/models/template.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/submitter.rb b/app/models/submitter.rb index cedca938..11950566 100644 --- a/app/models/submitter.rb +++ b/app/models/submitter.rb @@ -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 diff --git a/app/models/template.rb b/app/models/template.rb index e6ec4f2d..bf97187e 100644 --- a/app/models/template.rb +++ b/app/models/template.rb @@ -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