Browse Source

increase allowable length of remote proof username (#10546)

pull/4/head
Alex Gessner 5 years ago
committed by Eugen Rochko
parent
commit
d431c810d3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/account_identity_proof.rb

+ 1
- 1
app/models/account_identity_proof.rb View 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 }

Loading…
Cancel
Save