mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
chore: use pgx v5 (#7577)
* chore: use pgx v5 * chore: update go version * remove direct pq dependency * remove unnecessary type * scan test * map scanner * converter * uint8 number array * duration * most unit tests work * unit tests work * chore: coverage * go 1.21 * linting * int64 gopfertammi * retry go 1.22 * retry go 1.22 * revert to go v1.21.5 * update go toolchain to 1.21.8 * go 1.21.8 * remove test flag * go 1.21.5 * linting * update toolchain * use correct array * use correct array * add byte array * correct value * correct error message * go 1.21 compatible
This commit is contained in:
@@ -2,6 +2,7 @@ package admin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"google.golang.org/protobuf/types/known/durationpb"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
@@ -394,11 +395,11 @@ func (s *Server) getLoginPolicy(ctx context.Context, orgID string, orgIDPs []str
|
||||
return nil, err
|
||||
}
|
||||
if !queriedLogin.IsDefault {
|
||||
pwCheck := durationpb.New(queriedLogin.PasswordCheckLifetime)
|
||||
externalLogin := durationpb.New(queriedLogin.ExternalLoginCheckLifetime)
|
||||
mfaInitSkip := durationpb.New(queriedLogin.MFAInitSkipLifetime)
|
||||
secondFactor := durationpb.New(queriedLogin.SecondFactorCheckLifetime)
|
||||
multiFactor := durationpb.New(queriedLogin.MultiFactorCheckLifetime)
|
||||
pwCheck := durationpb.New(time.Duration(queriedLogin.PasswordCheckLifetime))
|
||||
externalLogin := durationpb.New(time.Duration(queriedLogin.ExternalLoginCheckLifetime))
|
||||
mfaInitSkip := durationpb.New(time.Duration(queriedLogin.MFAInitSkipLifetime))
|
||||
secondFactor := durationpb.New(time.Duration(queriedLogin.SecondFactorCheckLifetime))
|
||||
multiFactor := durationpb.New(time.Duration(queriedLogin.MultiFactorCheckLifetime))
|
||||
|
||||
secondFactors := []policy_pb.SecondFactorType{}
|
||||
for _, factor := range queriedLogin.SecondFactors {
|
||||
|
Reference in New Issue
Block a user