fix: review comments

This commit is contained in:
Stavros
2025-12-21 17:25:04 +02:00
parent 195b70b4d7
commit 7db81121e1
7 changed files with 15 additions and 8 deletions

View File

@@ -41,7 +41,9 @@ func healthcheckCmd() *cli.Command {
log.Info().Str("app_url", appUrl).Msg("Performing health check")
client := http.Client{}
client := http.Client{
Timeout: 30 * time.Second,
}
req, err := http.NewRequest("GET", appUrl+"/api/healthz", nil)

View File

@@ -109,7 +109,7 @@ func verifyUserCmd() *cli.Command {
ok := totp.Validate(tCfg.Totp, user.TotpSecret)
if !ok {
return fmt.Errorf("TOTP code incorrect: %w", err)
return fmt.Errorf("TOTP code incorrect")
}
log.Info().Msg("User verified")