Forums

500 - PASSWORD DO NOT MATCH.

jimboyr 13 Mar, 2008
I am trying very hard to get to grips with the 1.5 new release and really want to make it work for my site before I go ahead and buy it (thanks for letting us try it for free).

I have used the registration plugin and almost everything works - except - if the users password and the oddly named password2 don't match, I can't get it with onsubmit(), I wind up with a 500 error and the error page (which pathetically tells the user that the passwords don't match).

How do I stop this error from throwing the error page instead of passing it to the onsubmit code?

James :unsure:
GreyHead 13 Mar, 2008
Hi James,

The Password2 field is the equivalent of Joomla's 're-enter password' field and is there to try to avoid the problems of password mistypes.

You have several options: you can have a second field and validate it against the first; you can have just one field and submit the same value to both Joomla fields; you can have Joomla generate the password.

I hacked this PlugIn recently and put all the password code inside the module - basically I had the PlugIn create a password and tell the user what it was.

Depends on your site which route you take.

Bob
jimboyr 13 Mar, 2008
Thanks Bob - I was tryin too hard to emulate the
Joomla login - I think I will only use one password and have it appear as plain text (so they can't mistype) and then set the password2 to the first one.

Thanks again.

James
jimboyr 13 Mar, 2008
I thought that would do it, but apparently not. I get the same 500 error even when I use the same field in both fields of the plugin config. Wierd!


James<br><br>Post edited by: jimboyr, at: 2008/03/13 01:49
Max_admin 13 Mar, 2008
Hi James,

Try to put a small JS line to check that both fields are the same upon form submit ?

If this won't work then you can hack the registration plugin, just at the start of the onsubmit function, add this line :

$_POST['password2'] = $_POST['password'];


Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jimboyr 13 Mar, 2008
Thanks Max - that worked, but it's odd. Do you think they changed the password variable names in 1.5.1?

I have another problem tho' - the emails sent to the registering person contain nothing but SEND_MSG_ACTIVATE and the admins SEND_MSG_ADMIN.

I take it that this is a global variable name for the text string of the messages and it's missing a $ someplace. Is this in your code or the base registration code?

James<br><br>Post edited by: jimboyr, at: 2008/03/13 16:00
Max_admin 14 Mar, 2008
Hi James,

No I dont think so, look at the normal registration form HTML!

These are the language file predefined variables, In Joomla 1.0 they should be working fine, but in Joomla 1.5 this seems has been changed, just give them 2 variable names and copy them from the language file!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.