diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 13:11:51 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-24 13:11:51 +0200 |
| commit | 02e1aefa24cdd0339995d14431713822f4bf4718 (patch) | |
| tree | a622727150214f8e9dab165ae48803180c38403d /db/migrate | |
| parent | 38920de3910705dac42af2370da7b3ba504577a9 (diff) | |
Add TOTP enrollment and verification to User, witnessed in the action log
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20260724110241_add_otp_to_users.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ | |||
| 1 | class AddOtpToUsers < ActiveRecord::Migration[8.1] | ||
| 2 | def change | ||
| 3 | add_column :users, :otp_secret, :string | ||
| 4 | add_column :users, :otp_pending_secret, :string | ||
| 5 | add_column :users, :otp_consumed_timestep, :integer | ||
| 6 | add_column :users, :otp_required, :boolean, :null => false, :default => false | ||
| 7 | end | ||
| 8 | end | ||
