diff options
author | Go MAEDA <maeda@farend.jp> | 2020-08-29 06:21:50 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-08-29 06:21:50 +0000 |
commit | 560bca344ae467cda03e758159fbf131d5c49f43 (patch) | |
tree | 15b4b2ec74c1d98e28f47453093588b271e18865 /db | |
parent | 657ddfef452b145bbbce2970369ce42624dfca8e (diff) | |
download | redmine-560bca344ae467cda03e758159fbf131d5c49f43.tar.gz redmine-560bca344ae467cda03e758159fbf131d5c49f43.zip |
Adds two factor authentication support (#1237).
Patch by Felix Schäfer.
git-svn-id: http://svn.redmine.org/redmine/trunk@19988 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200826153401_add_twofa_scheme_to_user.rb | 5 | ||||
-rw-r--r-- | db/migrate/20200826153402_add_totp_to_user.rb | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20200826153401_add_twofa_scheme_to_user.rb b/db/migrate/20200826153401_add_twofa_scheme_to_user.rb new file mode 100644 index 000000000..ea0b48fc8 --- /dev/null +++ b/db/migrate/20200826153401_add_twofa_scheme_to_user.rb @@ -0,0 +1,5 @@ +class AddTwofaSchemeToUser < ActiveRecord::Migration[5.2] + def change + add_column :users, :twofa_scheme, :string + end +end diff --git a/db/migrate/20200826153402_add_totp_to_user.rb b/db/migrate/20200826153402_add_totp_to_user.rb new file mode 100644 index 000000000..6842878e3 --- /dev/null +++ b/db/migrate/20200826153402_add_totp_to_user.rb @@ -0,0 +1,6 @@ +class AddTotpToUser < ActiveRecord::Migration[5.2] + def change + add_column :users, :twofa_totp_key, :string + add_column :users, :twofa_totp_last_used_at, :integer + end +end |