Bug 1080242 - locked account

@rnewman: over to you for a preliminary review.  This isn't final, because:

* the error code isn't determined
* the `unlock/resend_code` endpoint hasn't been speced;
* copy isn't agreed to.

But the ideas are in place.
aye, well spotted.

On Tue, Nov 25, 2014 at 5:08 PM, Ryan Kelly <notifications@github.com>
wrote:

> In src/main/java/org/mozilla/gecko/background/fxa/FxAccountClient10.java:
>
> > +   * <p>
> > +   * Since the account can be locked before the device can connect to it, the
> > +   * only reasonable identifier is the account email. Since the account is
> > +   * locked out, this request is un-authenticated.
> > +   *
> > +   * @param emailUTF8
> > +   *          identifying account.
> > +   * @param delegate
> > +   *          to invoke callbacks.
> > +   */
> > +  @SuppressWarnings("unchecked")
> > +  public void resendUnlockCode(final byte[] emailUTF8, final RequestDelegate<Void> delegate) {
> > +    final BaseResource resource;
> > +    final JSONObject body = new JSONObject();
> > +    try {
> > +      resource = new BaseResource(new URI(serverURI + "unlock/resend_code"));
>
> My read of mozilla/fxa-auth-server#801 (comment)
> <https://github.com/mozilla/fxa-auth-server/issues/801#issuecomment-56592929>
> is that this should be account/unlock/resend_code.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mozilla-services/android-sync/pull/504/files#r20910125>
> .
>