package userTotpSetupView import ( "github.com/fossyy/filekeeper/view/client/layout" "github.com/fossyy/filekeeper/types" ) templ content(title string, qrcode string, code string, user types.User, msg types.Message) { @layout.BaseAuth(title){ @layout.Navbar(user)
Back

Set up Two-Factor Authentication

Secure your account with time-based one-time passwords (TOTP).

Here's how to set up the Google Authenticator app:

  1. Download the Google Authenticator app on your mobile device.
  2. Open the app and tap "Begin Setup".
  3. Select "Scan a barcode" and point your camera at the QR code below.
  4. The app will automatically add your account and display a 6-digit code.
  5. Enter this code on the website to complete the setup.
switch msg.Code { case 0: case 1: }
QR Code

Backup Code:

----|----

TOTP Secret:

{code}
@layout.Footer() } } templ Main(title string, qrcode string, code string, user types.User, msg types.Message) { @content(title, qrcode, code, user, msg) }