We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Ok, I’m convinced that my CAPTCHA component needs a namespace but how about a context?

    It only operates on manager login and has no actions, menus, or custom manager pages.

    All it does is

    1. Display a captcha image and response field on the login page and set the captcha $_SESSION variable when OnManagerLoginFormPrerender fires.

    2. Check the $SESSION variable against the user’s input when OnBeforeManagerLogin fires.

    So, does it need a context of its own and, if so, what would I do with that context?

      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: BobRay at Aug 20, 2008, 12:57 AM

      Ok, I’m convinced that my CAPTCHA component needs a namespace but how about a context?

      It only operates on manager login and has no actions, menus, or custom manager pages.

      All it does is

      1. Display a captcha image and response field on the login page and set the captcha $_SESSION variable when OnManagerLoginFormPrerender fires.

      2. Check the $SESSION variable against the user’s input when OnBeforeManagerLogin fires.

      So, does it need a context of its own and, if so, what would I do with that context?
      1. it needs to be usable when logging into any context, not just OnManager (which covers the mgr and connector contexts), but OnWeb should cover other contexts
      2. is fine

      It does not need a context, but login is always targeting a specific context (or set of contexts).