gearheads
/
mastodon
Archived
2
0
Fork 0

increase allowable length of remote proof username (#10546)

gh/stable
Alex Gessner 2019-04-10 12:11:53 -04:00 committed by Eugen Rochko
parent 154106c0c3
commit d431c810d3
1 changed files with 1 additions and 1 deletions

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 }