aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/public_body.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index a372de435..bc8f084bb 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -95,7 +95,7 @@ class PublicBody < ActiveRecord::Base
self.publication_scheme = "" if self.publication_scheme.nil?
# Set an API key if there isn’t one
- self.api_key = SecureRandom.base64(32) if self.api_key.nil?
+ self.api_key = SecureRandom.base64(33) if self.api_key.nil?
end
# like find_by_url_name but also search historic url_name if none found