diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-27 16:23:33 -0700 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-09 17:31:07 -0400 |
commit | 7302395142dc93a45239c993b69958ca4a757c92 (patch) | |
tree | 17dfc5014de431462f05c13bec35f14b5b90550e /db | |
parent | fe75411df8d8ed41e89cfcae73d1ea34b8b339b9 (diff) | |
download | gitlab-ce-7302395142dc93a45239c993b69958ca4a757c92.tar.gz |
Init 2 factor authentication for user model
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150327223628_add_devise_two_factor_to_users.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20150327223628_add_devise_two_factor_to_users.rb b/db/migrate/20150327223628_add_devise_two_factor_to_users.rb new file mode 100644 index 00000000000..11b026ee8f3 --- /dev/null +++ b/db/migrate/20150327223628_add_devise_two_factor_to_users.rb @@ -0,0 +1,8 @@ +class AddDeviseTwoFactorToUsers < ActiveRecord::Migration + def change + add_column :users, :encrypted_otp_secret, :string + add_column :users, :encrypted_otp_secret_iv, :string + add_column :users, :encrypted_otp_secret_salt, :string + add_column :users, :otp_required_for_login, :boolean + end +end |