To fix the error during the security module password recovery process, you need to follow the steps below:

![](https://static.zohocdn.com/zoho-desk-editor/static/images/file.png)

Only available when using the option to email the change new password link.

## 1- Access the application app\_change\_pswd

By default, when generating the module, all applications are inside the security folder and with the prefix app\_, searching the list of applications for the name: app\_change\_pswd, it should be possible to access it.

![](https://static.zohocdn.com/zoho-desk-editor/static/images/caution.png)

It is necessary to check if the prefix used to create the module was "app\_", if it was another one, look only for the name change\_pswd

## 2- Access the onLoad event

With the application open inside Scriptcase, access the onLoad option inside the "Events" folder, as shown in the following image:

![](https://help.scriptcase.net/galleryDocuments/edbsne24c3602182e80d7f33a1535596386e9d9794ae3b9ec2b822009945dd9f783f65024f4cfe965824d4cb87867ed4e5e74?inline=true)

## 3- Change the code

Change the current code to the following:

1. if(isset([act\_code]) && !empty([act\_code]))
2. {
3. sc\_field\_display({old\_pswd}, 'off');
4. sc\_field\_no\_validate({old\_pswd});
5. sc\_btn\_display("exit","off")
6. }
7. else
8. {
9. sc\_field\_display({old\_pswd}, 'on');
10. sc\_btn\_display("exit","on");
11. }

## 4- Generate the application

After replacing the code, you must generate the source of the application, so that it can be used normally in the correct way.

![](https://static.zohocdn.com/zoho-desk-editor/static/images/info.png)

If you have any questions, [please contact our support.](https://www.scriptcase.net/support/)