diff --git a/view/client/totp/totp.templ b/view/client/totp/totp.templ index 8de63f2..f98f900 100644 --- a/view/client/totp/totp.templ +++ b/view/client/totp/totp.templ @@ -1,67 +1,110 @@ package totpView import ( - "github.com/fossyy/filekeeper/view/client/layout" - "github.com/fossyy/filekeeper/types" +"github.com/fossyy/filekeeper/view/client/layout" +"github.com/fossyy/filekeeper/types" ) templ content(title string, msg types.Message) { - @layout.Base(title){ -
-
-
-
- switch msg.Code { - case 0: - - } -

Verify Your Identity

-

- Please enter the 6-digit code generated by your authentication app to complete the login process. -

+ @layout.Base(title){ +
+
+ switch msg.Code { + case 0: + -
-
- -
- -
-
-
- -
-
-
-
-
- } + } +

Two-Factor Authentication

+

Enter the 6-digit code from your authenticator app

+
+ + + + + + +
+
+ + +
+ + + + + + } } templ Main(title string, msg types.Message) { - @content(title, msg) +@content(title, msg) } \ No newline at end of file diff --git a/view/client/totp/totp_templ.go b/view/client/totp/totp_templ.go index c23a2dd..bc069fc 100644 --- a/view/client/totp/totp_templ.go +++ b/view/client/totp/totp_templ.go @@ -46,7 +46,7 @@ func content(title string, msg types.Message) templ.Component { }() } ctx = templ.InitializeContext(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -59,7 +59,7 @@ func content(title string, msg types.Message) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(msg.Message) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/client/totp/totp.templ`, Line: 22, Col: 80} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/client/totp/totp.templ`, Line: 20, Col: 72} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { @@ -70,7 +70,7 @@ func content(title string, msg types.Message) templ.Component { return templ_7745c5c3_Err } } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Verify Your Identity

Please enter the 6-digit code generated by your authentication app to complete the login process.

") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Two-Factor Authentication

Enter the 6-digit code from your authenticator app

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }