Skip to content

Members: Activate Account

michael-e edited this page May 11, 2011 · 5 revisions

Example Error XML:

<members-activate-account result="error">
  <username type="invalid" message="Member not found." label="USERNAME" />
  <email type="invalid" message="Member not found." label="EMAIL" />
  <activation type="invalid" message="Activation error. Code was invalid or has expired." label="ACTIVATION" />
  <activation type="missing" message="ACTIVATION is a required field." label="ACTIVATION" />
  <activation type="invalid" message="Member is not activated." label="ACTIVATION" />
  <error type="invalid" message="No Activation field found." />
  <error type="invalid" message="No Identity field found." />
  <post-values>
    <username>Hello</username>
    <activation>7787cc711acefef8bb6c4bbd0257b583656e757d</activation>
  </post-values>
</members-activate-account>

Example Success XML (may include a filter element from an etm- or etf- filter):

<members-activate-account result="success">
  <filter name="etm-members-account-activated" status="passed" total="1" sent="1" />
  <post-values>
    <username>Hello</username>
    <activation>7787cc711acefef8bb6c4bbd0257b583656e757d</activation>
  </post-values>
</members-activate-account>

Detailed list of possible error responses

Error if no identity field value is found:

<members-activate-account result="error">
  <error type="invalid" message="No Identity field found." />
  <post-values>
    <activation>7787cc711acefef8bb6c4bbd0257b583656e757d</activation>
  </post-values>
</members-activate-account>

Error if no activation code is found:

<members-activate-account result="error">
  <activation type="missing" message="ACTIVATION is a required field." label="ACTIVATION" />
  <post-values>
    <username>Hello</username>
  </post-values>
</members-activate-account>

Error if activation code is found but username field is invalid:

<members-activate-account result="error">
  <username type="invalid" message="Member not found." label="USERNAME" />
  <post-values>
    <username>Hellooo</username>
    <activation>7787cc711acefef8bb6c4bbd0257b583656e757d</activation>
  </post-values>
</members-activate-account>

Error if activation code is found but email field is invalid:

<members-activate-account result="error">
  <email type="invalid" message="Member not found." label="EMAIL" />
  <post-values>
    <email>[email protected]</email>
    <activation>7787cc711acefef8bb6c4bbd0257b583656e757d</activation>
  </post-values>
</members-activate-account>

Error if identity field value is OK but activation code is invalid:

<members-activate-account result="error">
  <activation type="invalid" message="Activation error. Code was invalid or has expired." label="ACTIVATION" />
  <post-values>
    <email>[email protected]</email>
    <activation>iamjustguessingtherottencode</activation>
  </post-values>
</members-activate-account>
Clone this wiki locally