I have integrated the flex_auth library into my webpage and everything is working fine on the localhost however, on the subdomain.domain.com clicking on the activate account in the email cause a blank screen to appear unlike on the localhost that works. I am also using the same .htaccess file on both localhost and the domain.
I don't know where to start looking for the problem.
I do however require that the activation_token be compared.
After struggling for many hours, I discovered that the latest version of MySQL running on localhost allows me to have activation_tokens of 40 characters in length. After limiting the activation_token length to 38, the code started working.
Code:
$activation_token = substr(sha1($this->generate_token(20)),0,38);
:
:
// Confirm activation token is 40 characters long (length of sha1).
if ($verify_token && strlen($activation_token) != 38)
{
return FALSE;
}
// Verify that $activation_token matches database record.
else if ($verify_token && strlen($activation_token) == 38)