From 02e1aefa24cdd0339995d14431713822f4bf4718 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 24 Jul 2026 13:11:51 +0200 Subject: Add TOTP enrollment and verification to User, witnessed in the action log --- db/migrate/20260724110241_add_otp_to_users.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 db/migrate/20260724110241_add_otp_to_users.rb (limited to 'db') diff --git a/db/migrate/20260724110241_add_otp_to_users.rb b/db/migrate/20260724110241_add_otp_to_users.rb new file mode 100644 index 00000000..b43542bf --- /dev/null +++ b/db/migrate/20260724110241_add_otp_to_users.rb @@ -0,0 +1,8 @@ +class AddOtpToUsers < ActiveRecord::Migration[8.1] + def change + add_column :users, :otp_secret, :string + add_column :users, :otp_pending_secret, :string + add_column :users, :otp_consumed_timestep, :integer + add_column :users, :otp_required, :boolean, :null => false, :default => false + end +end -- cgit v1.3