increase allowable length of remote proof username (#10546)

master
Alex Gessner 6 years ago committed by Eugen Rochko
parent 154106c0c3
commit d431c810d3
  1. 2
      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 }

Loading…
Cancel
Save