increase allowable length of remote proof username (#10546)
This commit is contained in:
parent
154106c0c3
commit
d431c810d3
|
@ -18,7 +18,7 @@ class AccountIdentityProof < ApplicationRecord
|
||||||
belongs_to :account
|
belongs_to :account
|
||||||
|
|
||||||
validates :provider, inclusion: { in: ProofProvider::SUPPORTED_PROVIDERS }
|
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 :provider_username, uniqueness: { scope: [:account_id, :provider] }
|
||||||
validates :token, format: { with: /\A[a-f0-9]+\z/ }, length: { maximum: 66 }
|
validates :token, format: { with: /\A[a-f0-9]+\z/ }, length: { maximum: 66 }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue