# I want to redirecting the user after they reset their password

**URL:** <https://community.auth0.com/t/i-want-to-redirecting-the-user-after-they-reset-their-password/94519>\
**Category:** Get Help\
**Tags:** branding, classic-universal-login-customizations\
**Created:** [November 16, 2022, 10:23am UTC](https://community.auth0.com/t/i-want-to-redirecting-the-user-after-they-reset-their-password/94519 "2022-11-16T10:23:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shanh/32/33837_2.png) [@shanh](https://community.auth0.com/u/shanh)\
**Post date:** [November 16, 2022, 10:23am UTC](https://community.auth0.com/t/i-want-to-redirecting-the-user-after-they-reset-their-password/94519/1 "2022-11-16T10:23:59Z")

</div>

In Universal Login → password reset page, I hope to automatically redirect to the login page after the user successfully modifies the password，and this feature is also given in the document，But my page didn’t redirect，this is my code

```auto
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>Change your password</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  </head>
  <body>
    <div class="web-login">
      <div class="login-layout">
        <div id="change-password-widget-container"></div>
      </div>
    </div>

    <script src="https://cdn.auth0.com/js/change-password-1.5.min.js"></script>

    <script>
      // https://auth0.com/docs/customize/universal-login-pages/customize-password-reset-page
      new Auth0ChangePassword({
        container: 'change-password-widget-container', // required
        email: '{{email | escape}}', // DO NOT CHANGE THIS
        csrf_token: '{{csrf_token}}', // DO NOT CHANGE THIS
        ticket: '{{ticket}}', // DO NOT CHANGE THIS
        password_policy: '{{password_policy}}', // DO NOT CHANGE THIS
        password_complexity_options: '{{password_complexity_options}}', // DO NOT CHANGE THIS
        theme: {
          icon: "{{tenant.picture_url | default: '//cdn.auth0.com/styleguide/1.0.0/img/badge.png'}}",
          primaryColor: "{{tenant.colors.primary | default: '#ea5323'}}"
        },
      });
      const submitBtn = document.getElementsByClassName('auth0-lock-submit')[0];

      // add listener to the submit button
      submitBtn.addEventListener('click', () => {
        // some verifications...
      });
    </script>
  </body>
</html>

```

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 28, 2022, 5:58pm UTC](https://community.auth0.com/t/i-want-to-redirecting-the-user-after-they-reset-their-password/94519/3 "2022-11-28T17:58:25Z")

</div>

Hi @shanh,

Do you have the redirect to param set?

[https://manage.auth0.com/#/emails](https://manage.auth0.com/#/emails) \> Change Password \> Redirect To

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 30, 2023, 9:36pm UTC](https://community.auth0.com/t/i-want-to-redirecting-the-user-after-they-reset-their-password/94519/4 "2023-01-30T21:36:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
