Welcome Guest, Not a member yet? Register   Sign In
Problem with tank_auth login
#1

[eluser]Cgull[/eluser]
Hello,

I have a very strange problem.

I put my site online yesterday.

I have created an account for myself and logged in with no problem.

Today when I try to login, I stay on the login form and don't get any error.

I am using the right login details.

My husband, created an account yesterday, and he manages to login today with no problem.

I just don't know where to look.

Can anyone please suggest something? What to check?

If you need to see any of my files please let me know which ones?

Highland Coffee Roastery
#2

[eluser]Cgull[/eluser]
An update.

10 minutes ago, my husband logged in fine.

Now I have the same problem with his login as with mine.

The screen stays on the login form, clears the password field, and gives no error.

Please, please help, I'm thinking of jumping off the roof.... Wink
#3

[eluser]Cgull[/eluser]
[SOLVED]
Ok, found out the problem is in these lines on the auth contoroller in the login function:

Code:
if ($this->tank_auth->is_max_login_attempts_exceeded($login)) {
    if ($data['use_recaptcha'])
     $this->form_validation->set_rules('recaptcha_response_field', 'Confirmation Code', 'trim|xss_clean|required|callback__check_recaptcha');
    else
     $this->form_validation->set_rules('captcha', 'Confirmation Code', 'trim|xss_clean|required|callback__check_captcha');
   }

When I started developing the site, I didn't want captcha on the login screen, so I removed it from the login view.

I put it back and everything is back to normal, not going to jump from the roof anymore Smile

I tried to login today a few times with wrong login details and that caused all the chaos.





Theme © iAndrew 2016 - Forum software by © MyBB