mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
relax expiry of otp tokens
This commit is contained in:
@@ -276,7 +276,7 @@ func (s *User) SendVerificationEmail(ctx context.Context, req *pb.SendVerificati
|
|||||||
|
|
||||||
// generate a new OTP code
|
// generate a new OTP code
|
||||||
resp, err := s.Otp.Generate(ctx, &otp.GenerateRequest{
|
resp, err := s.Otp.Generate(ctx, &otp.GenerateRequest{
|
||||||
Expiry: 300,
|
Expiry: 900,
|
||||||
Id: req.Email,
|
Id: req.Email,
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -306,7 +306,7 @@ func (s *User) SendPasswordResetEmail(ctx context.Context, req *pb.SendPasswordR
|
|||||||
|
|
||||||
// generate a new OTP code
|
// generate a new OTP code
|
||||||
resp, err := s.Otp.Generate(ctx, &otp.GenerateRequest{
|
resp, err := s.Otp.Generate(ctx, &otp.GenerateRequest{
|
||||||
Expiry: 300,
|
Expiry: 900,
|
||||||
Id: req.Email,
|
Id: req.Email,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user