title: Update password field from Titanium application
body: <p>I'm working on a Titanium based iOS application.</p>
  
  <p>In which I need to implement the password reset functionality within my app.</p>
  
  <p><img src="https://i.stack.imgur.com/Zz0sc.png" alt="Password reset"></p>
  
  <p>I found this <code>requestResetPassword</code> method for doing this:</p>
  
  <pre><code>Cloud.Users.requestResetPassword({
      email: 'me@mycompany.com'
  }, function (e) {
      if (e.success) {
          alert('Success: Reset Request Sent');
      } else {
          alert('Error:\\n' +
              ((e.error &amp;&amp; e.message) || JSON.stringify(e)));
      }
  });
  </code></pre>
  
  <p>From docs it says that, it'll send a reset password option to user's mail account. But I don't want that. I need to reset password within my application.</p>
  
  <p>Also I can't remove the current user and create a new account for the same user with new password because there is a lot of custom data saved for each particular user. So that's not a good solution.</p>
  
  <p>Also I found the <code>update</code> function, but I don't know how to use it for updating the password field in cloud, because it is not a custom field.</p>
  
  <pre><code>Cloud.Users.update({
      email: 'me@mycompany.com',
      first_name: 'm',
      last_name: 'e',
  }, function (e) {
      if (e.success) {
          var user = e.users[0];
          alert('Success:\\n' +
              'id: ' + user.id + '\\n' +
              'first name: ' + user.first_name + '\\n' +
              'last name: ' + user.last_name);
      } else {
          alert('Error:\\n' +
              ((e.error &amp;&amp; e.message) || JSON.stringify(e)));
      }
  });
  </code></pre>
  
  <p>Is there anyway to do this from my application ? How can I update user's password field within my application ?</p>
  
  <p>Referred docs:</p>
  
  <ol>
  <li><a href="http://tidevcn.com/apidoc/Titanium.Cloud.Users-module.html" rel="nofollow noreferrer"><strong>Titanium.Cloud.Users-module</strong></a></li>
  <li><a href="http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Cloud.Users" rel="nofollow noreferrer"><strong>Titanium.Cloud.Users</strong></a></li>
  </ol>
  
  <p>Please help, thanks in advance.</p>