From 61976f6c476826a0befc340f74276eb6bdb53f31 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 1 Jan 2025 01:13:16 +0800 Subject: [PATCH] :necktie: Remove auto enable two-step verification --- pkg/internal/services/accounts.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkg/internal/services/accounts.go b/pkg/internal/services/accounts.go index 6027229..db00177 100644 --- a/pkg/internal/services/accounts.go +++ b/pkg/internal/services/accounts.go @@ -3,6 +3,9 @@ package services import ( "context" "fmt" + "time" + "unicode" + "git.solsynth.dev/hypernet/nexus/pkg/nex" "git.solsynth.dev/hypernet/nexus/pkg/proto" "git.solsynth.dev/hypernet/passport/pkg/authkit/models" @@ -10,8 +13,6 @@ import ( "github.com/eko/gocache/lib/v4/cache" "github.com/eko/gocache/lib/v4/marshaler" "github.com/eko/gocache/lib/v4/store" - "time" - "unicode" "git.solsynth.dev/hypernet/passport/pkg/internal/gap" @@ -22,7 +23,6 @@ import ( "gorm.io/datatypes" "git.solsynth.dev/hypernet/passport/pkg/internal/database" - "github.com/google/uuid" "github.com/samber/lo" ) @@ -134,10 +134,6 @@ func CreateAccount(name, nick, email, password string) (models.Account, error) { Type: models.PasswordAuthFactor, Secret: HashPassword(password), }, - { - Type: models.EmailPasswordFactor, - Secret: uuid.NewString()[:8], - }, }, Contacts: []models.AccountContact{ {