elic-dev / laravel-math-captcha

A simple math captcha for Laravel form validation.
MIT License
12 stars 9 forks source link

Redirected to 404 page after a successful login #2

Closed yassersharaf closed 6 years ago

yassersharaf commented 6 years ago

Hi,

I'm getting redirected to 404 page after login and when I go to the home page I find that I logged in correctly which means the captcha redirects to a wrong page which doesn't exist how can I solve this?

http://127.0.0.1:9500/404

Always get redirected to 404 but if captcha code is wrong I get redirected back to the login page with the label of wrong code which is fine.

when I stop the login process from AuthenticatesUsers like this

die($this->sendLoginResponse($request));

I get

HTTP/1.0 302 Found Cache-Control: no-cache, private Date: Wed, 10 Oct 2018 13:01:35 GMT Location: http://127.0.0.1:9500/404 Redirecting to http://127.0.0.1:9500/404. 
yassersharaf commented 6 years ago

Issue solved after removing the package and creating a new custom login

L1lle commented 6 years ago

Hi @yassersharaf , This package doesn't do any redirects. It's only a simple custom validation rule. I guess you had a misconfiguration in your authentication setup.

Closing this issue now since it's now related to my package.