Skip to content

Commit 783352c

Browse files
committed
Remove current_password from params in update_without_password path
1 parent 3986baf commit 783352c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/users/registrations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def update_resource(resource, _params)
55
if updating_sensitive_info?
66
resource.update_with_password(user_params)
77
else
8-
resource.update_without_password(user_params)
8+
resource.update_without_password(user_params.except(:current_password))
99
end
1010
end
1111

0 commit comments

Comments
 (0)