Skip to content

Commit 3b781ee

Browse files
compwronCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent 2b1aac3 commit 3b781ee

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/controllers/users/invitations_controller.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ def edit
77
# Ensure the invitation_token is set on the resource from the URL parameter
88
resource.invitation_token = params[:invitation_token]
99

10-
Rails.logger.info "Invitation Edit: Token from params: #{params[:invitation_token]}"
11-
Rails.logger.info "Invitation Edit: Token set on resource: #{resource.invitation_token}"
10+
# Removed logging of invitation tokens for security reasons
11+
1212

1313
render :edit
1414
end
1515

1616
# PUT /users/invitation
1717
def update
18-
Rails.logger.info "Invitation Update: Params received: #{update_resource_params.inspect}"
19-
Rails.logger.info "Invitation Update: invitation_token in params: #{update_resource_params[:invitation_token]}"
20-
18+
# Removed logging of invitation tokens for security reasons
2119
super
2220
end
2321

0 commit comments

Comments
 (0)