From a617d52374e937db0edacfba2a26bdd14a05538e Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Apr 2017 00:14:30 -0400 Subject: 2fa: initial support (#945) --- templates/user/auth/login.tmpl | 44 +++++++++++++++++++++++ templates/user/auth/signin.tmpl | 44 ----------------------- templates/user/auth/two_factor.tmpl | 28 +++++++++++++++ templates/user/auth/two_factor_recovery_code.tmpl | 28 +++++++++++++++ 4 files changed, 100 insertions(+), 44 deletions(-) create mode 100644 templates/user/auth/login.tmpl delete mode 100644 templates/user/auth/signin.tmpl create mode 100644 templates/user/auth/two_factor.tmpl create mode 100644 templates/user/auth/two_factor_recovery_code.tmpl (limited to 'templates/user/auth') diff --git a/templates/user/auth/login.tmpl b/templates/user/auth/login.tmpl new file mode 100644 index 00000000..b928f2bd --- /dev/null +++ b/templates/user/auth/login.tmpl @@ -0,0 +1,44 @@ +{{template "base/head" .}} +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "sign_in"}} +

+
+ {{template "base/alert" .}} +
+ + +
+
+ + +
+
+ +
+ + +
+
+ +
+ + + {{.i18n.Tr "auth.forget_password"}} +
+ {{if .ShowRegistrationButton}} + + {{end}} +
+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/user/auth/signin.tmpl b/templates/user/auth/signin.tmpl deleted file mode 100644 index b928f2bd..00000000 --- a/templates/user/auth/signin.tmpl +++ /dev/null @@ -1,44 +0,0 @@ -{{template "base/head" .}} -
-
-
-
- {{.CsrfTokenHtml}} -

- {{.i18n.Tr "sign_in"}} -

-
- {{template "base/alert" .}} -
- - -
-
- - -
-
- -
- - -
-
- -
- - - {{.i18n.Tr "auth.forget_password"}} -
- {{if .ShowRegistrationButton}} - - {{end}} -
-
-
-
-
-{{template "base/footer" .}} diff --git a/templates/user/auth/two_factor.tmpl b/templates/user/auth/two_factor.tmpl new file mode 100644 index 00000000..bbe12abf --- /dev/null +++ b/templates/user/auth/two_factor.tmpl @@ -0,0 +1,28 @@ +{{template "base/head" .}} +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "auth.login_two_factor"}} +

+
+ {{template "base/alert" .}} +
+ +
+ +
+
+ + +
+

+ {{.i18n.Tr "auth.login_two_factor_enter_recovery_code"}} +

+
+
+
+
+{{template "base/footer" .}} diff --git a/templates/user/auth/two_factor_recovery_code.tmpl b/templates/user/auth/two_factor_recovery_code.tmpl new file mode 100644 index 00000000..a9ed17ee --- /dev/null +++ b/templates/user/auth/two_factor_recovery_code.tmpl @@ -0,0 +1,28 @@ +{{template "base/head" .}} +
+
+
+
+ {{.CsrfTokenHtml}} +

+ {{.i18n.Tr "auth.login_two_factor_recovery"}} +

+
+ {{template "base/alert" .}} +
+ +
+ +
+
+ + +
+

+ {{.i18n.Tr "auth.login_two_factor_enter_passcode"}} +

+
+
+
+
+{{template "base/footer" .}} -- cgit v1.2.3