# CakeDC users plugin: redirect error after changePassword

**URL:** <https://discourse.cakephp.org/t/cakedc-users-plugin-redirect-error-after-changepassword/3443>\
**Category:** Need Help\
**Created:** [November 2, 2017, 8:06pm UTC](https://discourse.cakephp.org/t/cakedc-users-plugin-redirect-error-after-changepassword/3443 "2017-11-02T20:06:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mben](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/mben/32/1099_2.png) [@mben](https://discourse.cakephp.org/u/mben)\
**Post date:** [November 2, 2017, 8:06pm UTC](https://discourse.cakephp.org/t/cakedc-users-plugin-redirect-error-after-changepassword/3443/1 "2017-11-02T20:06:37Z")

</div>

My app is developed in CakePHP 3.x.

I use CakedDC Users plugin, and it works fine, except when the user wants to change his password, and click on Submit.

Let’s say we have a Profile ID = 52606b3f-c72d-4485-9c76-3b0f8

The Edit page has a url like this:

> localhost/my\_app/profile/52606b3f-c72d-4485-9c76-3b0f8

The changePassword page has a url like this:

> localhost/my\_app/users/users/change-password/52606b3f-c72d-4485-9c76-3b0f8

When I click on Submit, it redirects to the profile page, but the ID is lost:

> localhost/my\_app/profile

and I get this error message:

> Record not found in table “users” with primary key [NULL]

It is clear that the error message is due to the ID which is not passed. Unfortunately I don’t find where and how to fix i in the plugint.

Any help please ?.
