Skip to content

Commit 155bd86

Browse files
committed
feat: remov edebug logs
1 parent a2607f1 commit 155bd86

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

internal/api/user.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,12 @@ func (a *API) UserUpdate(w http.ResponseWriter, r *http.Request) error {
153153
// cannot know their current password, that is why they are resetting it.
154154
isRecoverySession := false
155155
if session != nil {
156-
amrMethods := []string{}
157156
for _, claim := range session.AMRClaims {
158-
amrMethods = append(amrMethods, claim.GetAuthenticationMethod())
159157
if claim.GetAuthenticationMethod() == models.Recovery.String() {
160158
isRecoverySession = true
161159
break
162160
}
163161
}
164-
logrus.WithFields(logrus.Fields{
165-
"session_id": session.ID,
166-
"amr_methods": amrMethods,
167-
"amr_claims_count": len(session.AMRClaims),
168-
"is_recovery_session": isRecoverySession,
169-
}).Info("[delos] password update: session AMR check")
170-
} else {
171-
logrus.Info("[delos] password update: session is nil")
172162
}
173163

174164
if !isRecoverySession {

internal/api/verify.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,6 @@ func (a *API) verifyPost(w http.ResponseWriter, r *http.Request, params *VerifyP
300300
if params.Type == mail.RecoveryVerification {
301301
issuedAuthMethod = models.Recovery
302302
}
303-
logrus.WithFields(logrus.Fields{
304-
"params_type": params.Type,
305-
"issued_auth_method": issuedAuthMethod.String(),
306-
}).Info("[delos] verifyPost: issuing refresh token with auth method")
307303
token, terr = a.issueRefreshToken(r, tx, user, issuedAuthMethod, grantParams)
308304
if terr != nil {
309305
return terr

0 commit comments

Comments
 (0)