about summary refs log tree commit diff
path: root/app/models/webauthn_credential.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-09-29 10:29:42 +0200
committerGitHub <noreply@github.com>2020-09-29 10:29:42 +0200
commit62e3f588dee75fc6a37457f8218630daad056cba (patch)
tree69439eebc4da7137206ee82e6ec3fa21cf8c7ed0 /app/models/webauthn_credential.rb
parent787d5d728923393f12421a480b3c7aee789a11fe (diff)
parentccfc2b6dce4bfda283bb6bc968a23fe4a76951d7 (diff)
Merge pull request #1430 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/webauthn_credential.rb')
-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