浏览代码

increase allowable length of remote proof username (#10546)

master
Alex Gessner 5 年前
committed by Eugen Rochko
父节点
当前提交
d431c810d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/models/account_identity_proof.rb

+ 1
- 1
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 }



正在加载...
取消
保存