about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorkawaguchi <jiikko@users.noreply.github.com>2020-09-17 03:16:46 +0900
committerGitHub <noreply@github.com>2020-09-16 20:16:46 +0200
commit5d3c8baa9a0aa42c68cf0485c187652a435891ab (patch)
tree66747a803c1569c50a9dce8b5e01006aae319fab /app
parent9b74f6aca6aa3d130895c4737d1fa1db4fcffb5c (diff)
Fix validates :sign_count of WebauthnCredential (#14806)
Diffstat (limited to 'app')
-rw-r--r--app/models/webauthn_credential.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/webauthn_credential.rb b/app/models/webauthn_credential.rb
index 4129ce539..7d423e38d 100644
--- a/app/models/webauthn_credential.rb
+++ b/app/models/webauthn_credential.rb
@@ -18,5 +18,5 @@ class WebauthnCredential < ApplicationRecord
   validates :external_id, uniqueness: true
   validates :nickname, uniqueness: { scope: :user_id }
   validates :sign_count,
-            numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 2**32 - 1 }
+            numericality: { only_integer: true, greater_than_or_equal_to: 0, less_than_or_equal_to: 2**63 - 1 }
 end