00551: Can't login after one incorrect login

Summary: Can't login after one incorrect login
Created: 2005-10-03 14:50
Status: Closed - fixed for 2.1.beta4
Category: Bug
From: Uli
Assigned:
Priority: 5
Version: 2.0.2
OS: Apache/Linux

Description: User authorization is done by scripts/authuser.php

When trying to login with wrong username/passwort it's not possible anymore to login with the CORRECT values. I have to reload the page by clicking the logo or reopen the browser. This is very hard to explain to my users. Please fix.

Thanks Uli


Hmmm, I'm afraid I don't entirely understand the problem (because it works fine for me on my system). Is there a url where I can see the problem? --Pm

- this is happening on an internal machine, I will try to create a second system with the same effect. I think the problem is described in the authuser Cookbook entry, "In pmwiki ~beta 54 there is a minor bug. After logging in with a wrong user, you have to close the browser, or logout, otherwise you can't login with a valid user.". Again: trying to login with wrong username / password seems to do something to the session / cookie. Uli

Nov 6: sent email to PM with link to test installation Uli


Aha! Thanks to a problem that Bronwyn Boltwood was having, I was able to track this bug down to a problem in the authorization form being generated. So, try upgrading to 2.1.beta4 or later and see if that fixes things.

If for some reason upgrading isn't a good option at this point, then find the line in pmwiki.php that reads

    if ($k == 'authpw') continue;

and change it to

    if ($k == 'authpw' || $k == 'authid') continue;

and that should resolve the problem.

If it doesn't resolve the problem, re-open this ticket for me. :-)

--Pm

Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_REFERER] => https://www.pmwiki.org/PITS/00551
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=PITS%2f00551
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=PITS%2f00551
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00551
            [REDIRECT_SCRIPT_URL] => /wiki/PITS/00551
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afKxqp-hCktSC98_ul4o8wAAAFA
            [REDIRECT_URL] => /wiki/PITS/00551
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 19610
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/PITS/00551
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/PITS/00551
            [SCRIPT_URL] => /wiki/PITS/00551
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afKxqp-hCktSC98_ul4o8wAAAFA
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777512874.4911
            [REQUEST_TIME] => 1777512874
            [argv] => Array
                (
                    [0] => n=PITS%2f00551
                )

            [argc] => 1
        )

)