[pmwiki-users] Authentication Error
The Editor
editor at fast.st
Sun Sep 24 01:51:03 CDT 2006
I got the following warnings trying to login to my demo site using
FAST Data. It doesn't seem to do it on my production site, but maybe I
don't see them. Any thoughts?
I attached below a copy of the login script. On my home machine it
logs in perfectly (though it doesn't grant password permissions, just
identity based ones. Which is fine... But would like to fix it still.
But first things first.
These error messages. Any clue what they mean?
Cheers,
Caveman
Warning: array_keys() [function.array-keys]: The first argument should
be an array in /home/fastst/public_html/fastwiki/system/scripts/authuser.php
on line 82
Warning: preg_grep() [function.preg-grep]: Second argument to
preg_grep() should be an array in
/home/fastst/public_html/fastwiki/system/scripts/authuser.php on line
82
Warning: Invalid argument supplied for foreach() in
/home/fastst/public_html/fastwiki/system/scripts/authuser.php on line
82
Warning: Cannot modify header information - headers already sent by
(output started at
/home/fastst/public_html/fastwiki/system/scripts/authuser.php:82) in
/home/fastst/public_html/fastwiki/system/pmwiki.php on line 870
Warning: Cannot modify header information - headers already sent by
(output started at
/home/fastst/public_html/fastwiki/system/scripts/authuser.php:82) in
/home/fastst/public_html/fastwiki/system/pmwiki.php on line 871
if ($field == "login") {
$dp = $DataKey."Profiles.$_POST[member]";
if (($value == "auto") and (! PageExists($dp))) {
AuthUserId($pagename, $_POST['member']);
$m .= "You have been successfully logged in. ";
}
$pass1 = GetData($dp,"Password");
$pass2 = $_POST['passwd'];
if ($pass1 == $pass2) {
AuthUserId($pagename, $_POST['member']);
$m .= "You have been successfully logged in. ";
}
else Warning("Incorrect member name or password.");
}
More information about the pmwiki-users
mailing list