style(http,users): format totp.go and password.go files

This commit is contained in:
KhashayarKhm 2025-04-29 19:29:49 +03:30
parent 0439b20740
commit 6fa2c62cde
2 changed files with 4 additions and 2 deletions

View File

@ -5,9 +5,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/filebrowser/filebrowser/v2/users"
"github.com/golang-jwt/jwt/v4" "github.com/golang-jwt/jwt/v4"
"github.com/golang-jwt/jwt/v4/request" "github.com/golang-jwt/jwt/v4/request"
"github.com/filebrowser/filebrowser/v2/users"
) )
type totpUserInfo struct { type totpUserInfo struct {

View File

@ -8,9 +8,10 @@ import (
"io" "io"
"log" "log"
fbErrors "github.com/filebrowser/filebrowser/v2/errors"
"github.com/pquerna/otp/totp" "github.com/pquerna/otp/totp"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
fbErrors "github.com/filebrowser/filebrowser/v2/errors"
) )
// HashPwd hashes a password. // HashPwd hashes a password.