Skip to content

Members: Regenerate Activation Code

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

Example Error XML:

<members-regenerate-activation-code result="error">
  <username type="invalid" message="Member not found." label="USERNAME" />
  <email type="invalid" message="Member not found." label="EMAIL" />
  <activation type="invalid" message="Member is already activated." label="ACTIVATION" />
  <error type="invalid" message="No Activation field found." />
  <error type="invalid" message="No Identity field found." />
  <post-values>
    <username>Hello</username>
    <email>[email protected]</email>
  </post-values>
</members-regenerate-activation-code>

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

<members-regenerate-activation-code result="success">
  <filter name="etm-members-resend-activation-code" status="passed" total="1" sent="1" />
  <activation-code>383a59f08a2e9d057e7c13f48bb9d5d4c50664f4</activation-code>
  <post-values>
    <username>Hello</username>
  </post-values>
</members-regenerate-activation-code>

Detailed list of possible error responses

Error if no identity field value is found:

<members-regenerate-activation-code result="error">
  <error type="invalid" message="No Identity field found." />
  <post-values />
</members-regenerate-activation-code>

Error if username field is used and the member is not found - POST values may as well be empty:

<members-regenerate-activation-code result="error">
  <username type="invalid" message="Member not found." label="USERNAME" />
  <post-values>
    <username>Hellooo</username>
  </post-values>
</members-regenerate-activation-code>

Error if email field is used and the member is not found - POST values may as well be empty:

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

Error if member is already activated:

<members-regenerate-activation-code result="success">
  <activation type="invalid" message="Member is already activated." label="ACTIVATION" />
  <post-values>
    <username>Hello</username>
  </post-values>
</members-regenerate-activation-code>