Added TOTP 2FA support. #50

Merged
LogalDeveloper merged 12 commits from totp-feature into master 2018-06-10 21:08:56 -04:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ce8cb6f4ae - Show all commits
@@ -1,6 +1,6 @@
class AddTotpToUsers < ActiveRecord::Migration class AddTotpToUsers < ActiveRecord::Migration
def change def change
add_column :users, :totp_code, :string add_column :users, :totp_secret, :string
add_column :users, :totp_enabled, :boolean, default: false add_column :users, :totp_enabled, :boolean, default: false
end end
end end
+1 -1
View File
@@ -154,7 +154,7 @@ ActiveRecord::Schema.define(version: 20180606223258) do
t.boolean "header_scroll", default: false t.boolean "header_scroll", default: false
t.boolean "dark", default: false t.boolean "dark", default: false
t.text "public_key", limit: 65535 t.text "public_key", limit: 65535
t.string "totp_code", limit: 255 t.string "totp_string", limit: 255
t.boolean "totp_enabled", default: false t.boolean "totp_enabled", default: false
end end