about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorAlex Gessner <alex.gessner@gmail.com>2019-04-10 12:11:53 -0400
committerEugen Rochko <eugen@zeonfederated.com>2019-04-10 18:11:53 +0200
commitd431c810d34ee9d569e21982fb854b5ac8c61291 (patch)
tree900d76fff2ad94d9a66e73cf4e5eca71f063267a /app/models
parent154106c0c3b8fdd64f739fc449203b842924df0c (diff)
increase allowable length of remote proof username (#10546)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account_identity_proof.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account_identity_proof.rb b/app/models/account_identity_proof.rb
index 1ac234735..5871d0e84 100644
--- a/app/models/account_identity_proof.rb
+++ b/app/models/account_identity_proof.rb
@@ -18,7 +18,7 @@ class AccountIdentityProof < ApplicationRecord
   belongs_to :account
 
   validates :provider, inclusion: { in: ProofProvider::SUPPORTED_PROVIDERS }
-  validates :provider_username, format: { with: /\A[a-z0-9_]+\z/i }, length: { minimum: 2, maximum: 15 }
+  validates :provider_username, format: { with: /\A[a-z0-9_]+\z/i }, length: { minimum: 2, maximum: 30 }
   validates :provider_username, uniqueness: { scope: [:account_id, :provider] }
   validates :token, format: { with: /\A[a-f0-9]+\z/ }, length: { maximum: 66 }