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

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/sessions/two_factor.html.haml')
-rw-r--r--app/views/sessions/two_factor.html.haml31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/views/sessions/two_factor.html.haml b/app/views/sessions/two_factor.html.haml
new file mode 100644
index 000000000..76c29bbd4
--- /dev/null
+++ b/app/views/sessions/two_factor.html.haml
@@ -0,0 +1,31 @@
+- content_for :page_title do
+ = AppConfig.settings.pod_name + " - " + t("two_factor_auth.title")
+
+.container#twofa
+ .text-center
+ .logos-asterisk
+ %h1
+ = t("two_factor_auth.title")
+
+
+ = form_for resource, as: resource_name,
+ url: session_path(resource_name),
+ html: {class: "block-form"},
+ method: :post do |f|
+ %fieldset
+ %label.sr-only#otp-label{for: "otp_attempt"}
+ = t("two_factor_auth.input_token.label")
+ %i.entypo-lock
+ = f.text_field :otp_attempt,
+ type: :text,
+ placeholder: t("two_factor_auth.input_token.placeholder"),
+ required: true,
+ autofocus: true,
+ class: "input-block-level form-control"
+ %p= t "two_factor_auth.recovery.reminder"
+
+
+ .actions
+ = f.button t("devise.sessions.new.sign_in"),
+ type: :submit,
+ class: "btn btn-large btn-block btn-primary"