diff options
author | Alex Gessner <alex.gessner@gmail.com> | 2019-04-10 12:11:53 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-04-10 18:11:53 +0200 |
commit | d431c810d34ee9d569e21982fb854b5ac8c61291 (patch) | |
tree | 900d76fff2ad94d9a66e73cf4e5eca71f063267a /app/models | |
parent | 154106c0c3b8fdd64f739fc449203b842924df0c (diff) |
increase allowable length of remote proof username (#10546)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account_identity_proof.rb | 2 |
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 } |