We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26351
    • 2 Posts
    Hello all.

    When I set my custom .htaccess file in the "manager" subdirectory (with authorization options for administrator’s panel set), then eForm stops displaying Captcha codes on my site and asks for .htpasswd credentials on each form’s page load.

    How can I overcome such behavior? Has anyone already met such problem and knows how to deal with it?

    I’m using the latest stable Modx - ver. 0.9.6.2.
      • 26351
      • 2 Posts
      Nobody replies, maybe because of I didn’t show any code. So...

      My ".htaccess" file, which is located in the "/manager" subdirectory in Modx structure looks like this:
      Options -Indexes
      AuthName "Administrator's panel" 
      AuthType Basic 
      AuthUserFile .htpasswd 
      Require valid-user
      


      My form is built with eForm 1.4.4 and looks like:
      [!eForm? &formid=`ContactForm` &subject=`Test subject` &noemail=`0` &to=`my@email` &ccsender=`1` &vericode=`1` &tpl=`ContactForm` &report=`ContactFormReport` &invalidClass=`invalidValue` &thankyou=`form_thankyou` &protectSubmit=`1` &requiredClass=`requiredValue` &cssStyle=`ContactStyles`!]
      


      Now, if I refresh a page containing the form above, user is asked for a password. And from my point of view such behaviour is wrong, as the ".htaccess" protection should only guard access to "/manager" path, not to the front page itself.
        • 20413
        • 2,877 Posts
        The captha image generates from manager/includes/veriword.php
          @hawproductions | http://mrhaw.com/

          Infograph: MODX Advanced Install in 7 steps:
          http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

          Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
          http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower