Skip to content

Commit

Permalink
Refactor logging in Login function
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym committed Sep 29, 2024
1 parent 170589c commit 4d30000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion occupi-backend/pkg/handlers/auth_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func Login(ctx *gin.Context, appsession *models.AppSession, role string, cookies
// Use AllocateAuthTokens to handle the response
AllocateAuthTokens(ctx, token, expirationTime, cookies)

logrus.WithContext(ctx).Info("User logged in successfully")
logrus.Info("User logged in successfully: ", ctx)
}

func BeginLoginAdmin(ctx *gin.Context, appsession *models.AppSession) {
Expand Down

0 comments on commit 4d30000

Please sign in to comment.