We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39970
    • 1 Posts
    Hi everyone
    I have some expriences with MODx evo and now be a newbie with revo 2.2.1-pl.
    I've just setup Login snippet 1.8.0-pl after reading http://rtfm.modx.com/display/ADDON/Login.Tutorials,
    but I'm met in trouble with most simple example
    [[!Login]]


    To figure out the probllem, I added some modx log code for track at core/components/login/controllers/web/Login.php as follows
        /**
         * Process the controller
         * @return string
         */
        public function process() {
            $this->modx->log(modX::LOG_LEVEL_ERROR,'[Login]enterprocess');  // added
    
            if (!empty($_REQUEST[$this->getProperty('actionKey','service')])) {
                $this->modx->log(modX::LOG_LEVEL_ERROR,'[Login]enterhandle '); //added
                $this->handleRequest();
            }
            $content = $this->renderForm();
            return $this->output($content);
        }
    

    So I could get the string "enterprocess" in MODx error.log while rendering a default template of login form,
    but I can't find the string "enterhandle" even after posting the form.

    I guess it seems be a problem with handling POST data before processing authenticate
    with users in DB.
    Apache2 log shows as follows (918 is a resouce # of the form which aliased to login.html)
    POST /index.php?id=918 HTTP/1.1" 301 26 "http://(snip snip)/login.html" "Mozilla/5.0...

    Is there any suggestions or solutions for a problem like above?
    Thanks in advance.