dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
865 stars 467 forks source link

Redirect url after resetting the password must be configurable and Email template language must be configurable for front-end users #23524

Open muhammadfaizandotcms opened 1 year ago

muhammadfaizandotcms commented 1 year ago

Is your feature request related to a problem? Please describe.

The redirect URL after resetting the password must be configurable. Email template language must be configurable for front-end users Relevant Ticket: https://dotcms.zendesk.com/agent/tickets/109323

Describe the solution you'd like

The redirect URL must be configurable because After someone has changed the password, They are redirected to the dotAdmin back-end login page. Since a user can be front end user so they should be redirected to some other page.

There must be a way to change the default language of the forgot password email template. We are changing the locale for backend users but front-end users are receiving email in English only.

john-thomas-dotcms commented 1 year ago

The main problem here is that the forgot password functionality and API don't currently work for front-end logins. There are 3 main issues:

There are a couple main ways to address this:

  1. Update the forgot password API to make it more configurable. This includes options for (in order of importance):
    • Allow specification of the URL to redirect the user to after they've changed their password.
    • Allow specification of the language to send the forgot password email in.
    • Allow specification of the domain used in the URL with the forgot password link.
  2. Add an API method to allow a user's password to be changed directly.
    • This would allow customers to create their own forgot password pages/apps that they fully control, and send users to those instead of using the built-in forgot password function.