Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-28 02:23:33 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-10 00:31:07 +0300
commit7302395142dc93a45239c993b69958ca4a757c92 (patch)
tree17dfc5014de431462f05c13bec35f14b5b90550e /db
parentfe75411df8d8ed41e89cfcae73d1ea34b8b339b9 (diff)
Init 2 factor authentication for user model
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150327223628_add_devise_two_factor_to_users.rb8
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