mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 16:57:16 +08:00
SECURITY: Limit name field length of TOTP authenticators and security keys
This commit is contained in:
@ -96,6 +96,7 @@ class User < ActiveRecord::Base
|
||||
has_many :directory_items
|
||||
has_many :email_logs
|
||||
has_many :security_keys, -> { where(enabled: true) }, class_name: "UserSecurityKey"
|
||||
has_many :all_security_keys, class_name: "UserSecurityKey"
|
||||
|
||||
has_many :badges, through: :user_badges
|
||||
has_many :default_featured_user_badges,
|
||||
|
Reference in New Issue
Block a user