]> cat aescling's git repositories - mastodon.git/commitdiff
increase allowable length of remote proof username (#10546)
authorAlex Gessner <alex.gessner@gmail.com>
Wed, 10 Apr 2019 16:11:53 +0000 (12:11 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 10 Apr 2019 16:11:53 +0000 (18:11 +0200)
app/models/account_identity_proof.rb

index 1ac2347352dcee55064ae1c3fa7e557208f9f5db..5871d0e849ab9b2be58adffd1f1b7b1596dc3011 100644 (file)
@@ -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 }