Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1037] Cloud.Users.resendConfirmation does not work

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2015-09-29T01:10:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsTCSupportTriage
ReporterMitch Starnes
AssigneeShak Hossain
Created2014-11-25T20:50:36.000+0000
Updated2016-03-08T07:37:22.000+0000

Description

The only time you would need to resend a confirmation is when the user lost it or did not receive it. In these scenarios, the user profile would exist but not confirmed. Yet, when I use this method when the user has not been confirmed, he gets an error message that he must confirm first. How can he confirm if he doesn't have the confirmation email? We must be able to resend in this case. Cloud.Users.resendConfirmation({ email: username }, function (e) { if (e.success) { utils.notifyUser('Confirmation resent.', 'Please check your email.'); } else { utils.notifyUser('Error (121)', e.message); } });

Comments

  1. Shuo Liang 2015-01-15

    Hi, I see you problem. The root reason is that when you try to resend the confirmation email, you non-confirmed user is in login status. Like: after you create a new user, you can't try to call resendConfirmation API, because system will check your current login user is not confirmed yet (because session saved after you create new user.) So based on your case, if you want call resendConfirmation API after creation. You have to logout current non confirmed user first. Hope this will help you. Regards, Shuo
  2. Mitch Starnes 2015-01-21

    The only time I would ever want to resend a confirmation is when the user has not yet confirmed. This condition will occur when the user loses the email. I need to be able to resend a confirmation to someone who didn't receive the email or who lost it.
  3. Shuo Liang 2015-01-22

    ye, I understand your case. All the what I commented is to tell you that your can do resendConfirmation API as long as your app do not login any non_confirmed user.
  4. Mitch Starnes 2015-01-22

    I'm saying it is not working. Step 1. User registers for app Step 2. ACS sends user a confirmation email Step 3. User does not receive email Step 4. User tries to log in but ACS sees that he has not confirmed so we prompt him to confirm. Step 5. User never received email so he cannot confirm Step 6. User clicks Resend confirmation Step 7. User gets message that he must confirm. This is makes no sense. He needs another confirmation letter.
  5. Shuo Liang 2015-01-22

    Let me communicate with cloud team, see if there is something else unusual.
  6. Shuo Liang 2015-01-22

  7. Mitch Starnes 2015-01-22

    Thank you.

JSON Source