#7887 Better messaging for phone validation


Some error messages from Nexmo are not good to show to the end-user. Example: "The Nexmo platform was unable to process this message for the following reason: Request 'a98f5e449f40462bb8d3bd48f41d867e' was not found or it has been verified already." Some are ok like "The code provided does not match the expected value" and "A wrong code was provided too many times. Workflow terminated" https://docs.nexmo.com/index.php/verify/search#verify_return_code has a list of possible return statuses. I think we should pass through to the user only numbers 3 10 15 16 17. The rest should show a generic error message to the user.

We should show a couple example phone numbers like 1-311-555-2368 and +61 8 5550 1757 (both fake numbers that Nexmo won't accept) so that people know what kind of format they should put in.

Show a better indication of status after submitting phone number. Instead of changing to just "Enter PIN", show "A PIN is being sent to your phone. If you are unable to receive SMS, you will get a voice call with the number
Enter your PIN:"

It should be possible to have site-specific text added to the main paragraph either through template override or a bit of html as a config option. E.g. Problems with verification? <a href="/support">Get Support</a>


  • Igor Bondarenko - 2015-06-04
    • labels: phone, sf-current --> phone, sf-current, 42cc
    • status: open --> in-progress
    • assigned_to: Igor Bondarenko
  • Igor Bondarenko - 2015-06-04
    • status: in-progress --> review
  • Igor Bondarenko - 2015-06-04

    Closed #790. ib/7887

    This also contains some unrelated changes, which are useful for SF-specific (and other) extensions (git show 1d9daf4).

  • Dave Brondsema

    Dave Brondsema - 2015-06-04
    • labels: phone, sf-current, 42cc --> phone, sf-current, 42cc, sf-2
    • status: review --> closed
    • Reviewer: Dave Brondsema
  • Dave Brondsema

    Dave Brondsema - 2015-06-15
    • labels: phone, sf-current, 42cc, sf-2 --> phone, 42cc, sf-2
  • Igor Bondarenko - 2015-06-18
    • Milestone: unreleased --> asf_release_1.3.0

Log in to post a comment.