title: Auth0 password reset error
body: <p>I am using Angular 2 with lock version 10.8 and I am trying to add the ability for users to change their password. I've tried the following method, which calls the Management API, where the parameter <code>user_id</code> is the <code>user_id</code> received from the user's Auth0 profile, and the parameter <code>connection</code> is <code>'Username-Password-Authentication'</code></p>
  
  <pre><code>public resetPassword(user_id: string, password: string, connection: string): Observable&lt;any&gt; {        
      let body = JSON.stringify({ password, connection });
      let headers = new Headers({ 'Content-Type': 'application/json' });
      let options = new RequestOptions({ headers: headers });        
      return this.authHttp.patch('https://https://manage.auth0.com/api/v2/users/' + user_id, body, options).map(response =&gt; {
          return response.json();
      }).catch(this.appService.handleError);
  }
  </code></pre>
  
  <p>When using this code, I get the following error:</p>
  
  <blockquote>
    <p>OPTIONS
    <a href="https://https//manage.auth0.com/api/v2/users/auth0%7C58b77f281667c9685d1019c3" rel="nofollow noreferrer">https://https//manage.auth0.com/api/v2/users/auth0%7C58b77f281667c9685d1019c3</a>
    net::ERR_NAME_NOT_RESOLVED</p>
  </blockquote>
  
  <p>What am I doing wrong here?</p>
  
  <p>Here are the two sources I was using: <br>
  <a href="https://auth0.com/docs/connections/database/password-change" rel="nofollow noreferrer">https://auth0.com/docs/connections/database/password-change</a>
  <a href="https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id" rel="nofollow noreferrer">https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id</a></p>
  
  <p>And yes, the "Change Password flow v2" toggle is enabled.</p>