Skip to content

Regarding message-IDs #263

@michael-e

Description

@michael-e

I reverse-engineered a bit to understand the Members message IDs.

Defined in Members lib/class.membersevent.php:

const MEMBER_ERRORS = 104;
const MEMBER_INVALID = 105;

const SECTION_INVALID = 201;

const ACTIVATION_PRE_COMPLETED = 303;
const ACTIVATION_CODE_INVALID = 304;
const RECOVERY_CODE_INVALID = 305;

const ALREADY_LOGGED_IN = 501;

Defined in the Symphony core (lib/toolkit/events/class.event.section.php):

const UNKNOWN_ERROR = 0;

const ENTRY_CREATED_SUCCESS = 100;
const ENTRY_EDITED_SUCCESS = 101;
const ENTRY_ERRORS = 102;
const ENTRY_MISSING = 103;
const ENTRY_NOT_UNIQUE = 104;

const SECTION_MISSING = 200;

const FIELD_MISSING = 301;
const FIELD_INVALID = 302;
const FIELD_NOT_UNIQUE = 303;

const FILTER_FAILED = 400;

const SECURITY_XSRF = 500;

Used in Members:

events/event.members_activate_account.php
    MEMBER_ERRORS
    ACTIVATION_PRE_COMPLETED
    ACTIVATION_CODE_INVALID
events/event.members_generate_recovery_code.php
    ALREADY_LOGGED_IN
    MEMBER_ERRORS
events/event.members_regenerate_activation_code.php
    MEMBER_ERRORS
    ACTIVATION_PRE_COMPLETED
events/event.members_reset_password.php
    MEMBER_ERRORS
    RECOVERY_CODE_INVALID
fields/field.memberemail.php
    MEMBER_INVALID
fields/field.memberpassword.php
    MEMBER_INVALID
fields/field.memberusername.php
    MEMBER_INVALID
lib/class.membersevent.php
    MEMBER_ERRORS
    FILTER_FAILED

There are two things that are a bit strange:

  • SECTION_INVALID is defined in Members, but never used.
  • There is a number clash with 303, which means different things in the core and in Members. Shouldn't we avoid that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions