Welcome Guest, Not a member yet? Register   Sign In
flexi auth - A user authentication library for CodeIgniter

[eluser]Unknown[/eluser]
Dear all,

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.

Any ideas?

Gerrit.

The original activation link is:
Code:
http://subdomain.domain.com/auth/activate_account/5/504144472ac2f48d12ce7829a9d41f104f1543df
It seems that if you remove the /activation_token from the email shortcut, the account gets activated.
Code:
http://subdomain.domain.com/auth/activate_account/5
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)
I hope this help.
Gerrit.


Messages In This Thread
flexi auth - A user authentication library for CodeIgniter - by El Forum - 07-12-2014, 12:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB