I have been making some mods to the WebSignUp snippet. What I did was to make a copy of websignup.inc.php, make my changes there, and call that file from the WebSignupSnippet instead of the regular one. Quite straightforward and easily recoverable, I would have thought

. I got it pretty much working.
However, going back and testing a few things I found that attempting to login in as an invalid (unknown) user did not produce an alert. Although I didn’t think I had changed the login side of things, these files are so inextricably linked that I thought I must have done some damage along the way. I replaced the call to my custom file so that everything was back to normal. It still didn’t work >:(.
I have spent the whole day trying to chase this down and I now think it may be a bug in 0.9.1 itself.
What I have discovered so far :-
If I replace
if($limit==0 || $limit>1){
$output = webLoginAlert("Incorrect username or password entered!");
return;
}
in weblogin.processor.inc.php with
if($limit==0 || $limit>1){
echo webLoginAlert("Incorrect username or password entered!");
return;
}
it works fine. Therefore the code is being executed, but it appears that $output is not being inserted into the document, but I don’t know what happens to it once it leaves the snippet.
Also, comparing the WebLogin snippet from 0.9.0 with the current one
there are a number of differences. Come on guys ... they can’t BOTH be version 1.0
Error alerts work fine from WebSignup, which is the file I modified.
Can someone else please try this (login as an unknown user) and let me know if they get the same result? Otherwise it’s a reinstall for me :’(.