about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-08 22:20:08 +0200
committerGitHub <noreply@github.com>2017-04-08 22:20:08 +0200
commit9acdb166e8871632f592bfcd2386dfc288d81a07 (patch)
tree3ab00999fc01fee2146c70aef2016dbf29939196 /app/models
parent470eb0042ea99e0632ccc62a0b7c01e910f70491 (diff)
Fix #795, fix #704, fix #835 - 2FA requires confirmation to be enabled (#1278)
* Fix #795, fix #704, fix #835 - 2FA requires confirmation to be enabled
TOTP secret is not shown again after 2FA is enabled

* Clean up
Diffstat (limited to 'app/models')
-rw-r--r--app/models/form/two_factor_confirmation.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/form/two_factor_confirmation.rb b/app/models/form/two_factor_confirmation.rb
new file mode 100644
index 000000000..b8cf76d05
--- /dev/null
+++ b/app/models/form/two_factor_confirmation.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class Form::TwoFactorConfirmation
+  include ActiveModel::Model
+
+  attr_accessor :code
+end