Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

validationcode does not work ? / version 2.0.5

Quote Reply
validationcode does not work ? / version 2.0.5
hi there,

the validation code seems not to be working.

if i signup first time, get the mail with the code try to enter it
will not be accepted:

"3b89b0d8e528ef91c6317cdddef9c9a2 is not a valid key"

if i select the table where teh key should be expected:

select * from xxx_validate;
Empty set (0.00 sec)

any idea what that could be ?

thanks for any answers

chris
Quote Reply
Re: [steger] validationcode does not work ? / version 2.0.5 In reply to
I am having the same problem. It looks like the reference for the userid is wrong in Join.pm. Edit the file /path/to/webmail/admin/GMail/NoAuth/Join.pm. Look in the sub add_user for a line like this:
Code:
GMail::NoAuth::Join->send_key($id->{userid}, $cgi) or return;
It's around line 90. Change it to look like this:
Code:
GMail::NoAuth::Join->send_key($id->{'webmail_users.userid'}, $cgi) or return;

Make sure you make a backup copy of the file first :). Let me know if it works for you. It seemed to work for me.

Regards,
Charlie
Quote Reply
Re: [CP] validationcode does not work ? / version 2.0.5 In reply to
 
hey charlie,

yes it works for me too, may the developer/programmer should correct
them in the source-code..

thanks to you again!

chris
Quote Reply
Re: [steger] validationcode does not work ? / version 2.0.5 In reply to
What is the fix to this issue? None of my validation codes are working either.

Thank you,

Avery

Quote Reply
Re: [avery] validationcode does not work ? / version 2.0.5 In reply to
Hi avery,

Take a look at my post above. I posted a band-aid for the problem till GT can fix it.

Regards,
Charlie
Quote Reply
Re: [CP] validationcode does not work ? / version 2.0.5 In reply to
This didn't work for me. It started to return a Server error. I only changed the one line.

Avery
Quote Reply
Re: [CP] validationcode does not work ? / version 2.0.5 In reply to
Got it working, had a few other things I had modified for my system that needed to be changed... Thanks,

Avery

Quote Reply
Re: [avery] validationcode does not work ? / version 2.0.5 In reply to
Hi avery,

Is your table prefix 'webmail_'? Make sure you have the correct table prefix in place of 'webmail_'. You should probably send an e-mail to GT support. You might get a faster response that way. Double check that the code is correct where you made the changes. Post any errors from your error log, that will help find the problem as well.

Regards,
Charlie
Quote Reply
Re: [steger] validationcode does not work ? / version 2.0.5 In reply to
Hi,

The "official" fix is to edit admin/GMail/NoAuth/Join.pm and change:

Code:
# Send the validation key
if ($CFG->{join}->{verify_email}) {
GMail::NoAuth::Join->send_key($id->{'userid'}, $cgi) or return;
}
to:

Code:
# Send the validation key
my $p = GT::SQL->prefix;
if ($CFG->{join}->{verify_email}) {
GMail::NoAuth::Join->send_key($id->{$p . 'users.userid'}, $cgi) or return;
}
We'll update Gossamer Mail shortly.

Cheers,

Alex
--
Gossamer Threads Inc.