mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Review Changes for f4f8a293e7
.
This commit is contained in:
@ -1,3 +1,23 @@
|
||||
class UserSecondFactor < ActiveRecord::Base
|
||||
belongs_to :user
|
||||
|
||||
def self.methods
|
||||
@methods ||= Enum.new(
|
||||
totp: 1,
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: user_second_factors
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# user_id :integer not null
|
||||
# method :string
|
||||
# data :string
|
||||
# enabled :boolean default(FALSE), not null
|
||||
# last_used :datetime
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
|
Reference in New Issue
Block a user