By: harmanjeet singh user 30 Jan 2018 at 6:43 a.m. CST

7 Responses
harmanjeet singh gravatar
In case of forgot password i got mail with reset password link at registered mail id , this link will redirect me to resetPassword page where we fill form to reset password ,on submitting this form user will redirect GLUU's login screen , I want to change that redirect url , that is i want to redirect user to my site rather than Gluu's oxtrust login screen.

By Yuriy Movchan staff 31 Jan 2018 at 4:53 a.m. CST

Yuriy Movchan gravatar
Hi, You can modify this [file](https://github.com/GluuFederation/oxTrust/blob/master/server/src/main/resources/oxtrust_en.properties#L871) in oxauth.war if needed. Also in 3.1.3 we are planning to allow change message resources without oxauth.war [update](https://github.com/GluuFederation/oxAuth/issues/735):

By harmanjeet singh user 16 Feb 2018 at midnight CST

harmanjeet singh gravatar
Hi Yuriy Movchan I am not getting oxtrust_en.properties files in oxauth.war , but i found it in identity.war . Is this a same file in identity.war that you are talking about. If yes , can you help , in where i have to replace the Url of my site. Thanks

By Aliaksandr Samuseu staff 19 Feb 2018 at 12:25 p.m. CST

Aliaksandr Samuseu gravatar
Hi, Harmanjeet. I believe Yuriy miss-typed, you indeed need to edit this file in `/opt/gluu/jetty/identity/webapps/identity.war` You need to unpack the file from that archive, edit it, and pack it back into it. Can be done with tool `jar` already present in container: 1. Stop the corresponding service: `# service identity stop` 2. Create a temp directory to work with the archive: `# mkdir ~/identity_unpacked/; cd ~/identity_unpacked/` 3. Find relative path to the file in WAR: `# /opt/jre/bin/jar -tf /opt/gluu/jetty/identity/webapps/identity.war | grep -i 'oxtrust_en.properties'` 4. Unpack the file you need: `# /opt/jre/bin/jar -xf /opt/gluu/jetty/identity/webapps/identity.war WEB-INF/classes/oxtrust_en.properties` 5. Modify it in place where it was unpacked: `# vim WEB-INF/classes/oxtrust_en.properties` 6. Place the updated file back into archive, overwriting the old one: `# /opt/jre/bin/jar -uf /opt/gluu/jetty/identity/webapps/identity.war WEB-INF/classes/oxtrust_en.properties` 7. Start the corresponding service: `# service identity start`

By harmanjeet singh user 20 Feb 2018 at 12:31 a.m. CST

harmanjeet singh gravatar
Hi Aliaksandr Samuseu I had modified the above file but still no changes happen .System is still pointing to Gluu's oxtrust login page after reset password.How can i manage this..Can suggest in oxtrust_en.properties file where i had to change to achieve my goal Also if i want to change the content of email that user receive in case of forgot password. Because if i can able to change that content , then i will change the url that user received in mail.This may help in solving my problem.

By Jono Brooks user 20 Feb 2018 at 12:28 p.m. CST

Jono Brooks gravatar
I too am having issues with this. I suspect that what you are looking for is [this file](https://github.com/GluuFederation/oxTrust/blob/master/server/src/main/resources/META-INF/navigation/resetPassword.navigation.xml#L26). But, I'm pretty sure that you can't redirect to a non-JSF page from a navigation-case like this so you would have to preempt it by using an ExternalContext [here ](https://github.com/GluuFederation/oxTrust/blob/master/server/src/main/java/org/gluu/oxtrust/action/PasswordResetAction.java#L108)to create a redirect, which seems rather hacky. Additionally, I need to be able to set this value dynamically as I want to maintain the redirect_uri for the initial login attempt throughout the entire sequence of events for password reset, so that the customer still gets taken back to the application they were trying to sign into at the end rather than getting dumped on a Gluu page.

By Summer Nguyen user 09 Jul 2018 at 1:23 p.m. CDT

Summer Nguyen gravatar
Hi Jono Brooks, I got the same issue to you . I want the user redirects back to the application. Did you find a solution for that ? Thank you

By Tavernt Muchenje Account Admin 10 Mar 2020 at 7:21 a.m. CDT

Tavernt Muchenje gravatar
Hi harmanjeet, We have the same problem. Please assist. Did you get this to work? Kind Regards Tavernt