From fe3b1c9b52f584b0f045907585b206344fed55db Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Thu, 8 May 2025 21:20:58 +0700 Subject: chore: implement 2fa auth (#2968) * chore: implement 2fa auth from #2786 * chore: format code * chore: replace two factor token input with qr-code * chore: requesting confirmation of setting/removing two-factor authentication otpauth library was taken from cdnjs * chore: revert changes in `ClipboardManager` don't need it. * chore: removing twoFactor prop in settings page * chore: remove `twoFactorQr` object in `mounted` function --- go.mod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'go.mod') diff --git a/go.mod b/go.mod index 82aee875..c9a61524 100644 --- a/go.mod +++ b/go.mod @@ -15,8 +15,10 @@ require ( github.com/robfig/cron/v3 v3.0.1 github.com/shirou/gopsutil/v4 v4.25.3 github.com/valyala/fasthttp v1.61.0 + github.com/xlzd/gotp v0.1.0 github.com/xtls/xray-core v1.250306.1-0.20250430044058-87ab8e512882 go.uber.org/atomic v1.11.0 + golang.org/x/crypto v0.37.0 golang.org/x/text v0.24.0 google.golang.org/grpc v1.72.0 gorm.io/driver/sqlite v1.5.7 @@ -84,7 +86,6 @@ require ( go.uber.org/mock v0.5.2 // indirect go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect golang.org/x/arch v0.16.0 // indirect - golang.org/x/crypto v0.37.0 // indirect golang.org/x/mod v0.24.0 // indirect golang.org/x/net v0.39.0 // indirect golang.org/x/sync v0.13.0 // indirect -- cgit v1.2.3