Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1270] Cloud.Users.requestResetPassword sends bad link with two colons

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionFixed
Resolution Date2014-05-24T02:21:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterKeylo E.
AssigneeShuo Liang
Created2014-03-15T03:37:46.000+0000
Updated2016-03-08T07:37:39.000+0000

Description

Steps to Reproduce

Cloud.Users.requestResetPassword sends link to email

Actual Result

https:://cloud.appcelerator.com/users/reset_password?key=...

Expected Result

https://cloud.appcelerator.com/users/reset_password?key=...

Comments

  1. Ritu Agrawal 2014-03-17

    Not sure if you are passing "template" field for this API. Can you reproduce this issue with the following code?
       Cloud.Users.requestResetPassword({
           email: 'joeuser@mycompany.com'
       }, function (e) {
           if (e.success) {
               alert('Success: Reset Request Sent');
           } else {
               alert('Error:\n' +
                   ((e.error && e.message) || JSON.stringify(e)));
           }
       });
       
  2. Keylo E. 2014-03-19

    that is the exact code I am using but with a working email. Results in success, email reads.. https:://cloud.appcelerator.com/users/reset_password?key=.......
  3. Shuo Liang 2014-03-21

    Hi Keylo, Thank you for your ticket, it is actually a small bug for our code. And I will create a ticket to fix this bug as soon as possible. Regards, Shuo
  4. Shuo Liang 2014-03-21

    Sent a ticket to fix this bug already. It is a small bug and will be fixed quickly.
  5. Shuo Liang 2014-04-18

    This problem will fixed in next deployment.
  6. Shuo Liang 2014-05-24

    The bug has fixed and deployed to production.
  7. Joseph Sachs 2015-10-05

    I've implemented the steps as indicated on the Web site here: http://docs.appcelerator.com/arrowdb/latest/#!/api/Users-method-request_reset_password I have my own custom email template and website to update the User's password, however when I request to change the password, I get: "{ "meta": { "status":"fail", "code":400, "message":"Failed to reset password: reset_password_token is invalid", "method_name":"resetPassword" } } " Though I am sure the token is correct (same one that was in the Email, is also the one in the URL, and parsed correctly to resend when making the resetPassword API). https://community.appcelerator.com/topic/2838/custom-password-reset-page-bad-request-reset_password_token-is-invalid/3

JSON Source