Log in request without captcha returns an internal server error
Concerned version
Version: %2.0.X
Platform: All
Summary
Enable captcha in login form. curl -k -X POST -H "Accept: application/json" -d 'user=dwho' -d 'password=dwho' https://auth.example.com:19876
Logs
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [info] No cookie found
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Build URL http://auth.example.com:19876/
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Redirect 127.0.0.1 to portal (url was /)
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] User not authenticated, Try in use, cancel redirection
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Start routing default route
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Processing restoreArgs
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Processing controlUrl
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Processing code ref
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Processing code ref
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Launching ::Plugins::AutoSignin::check
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] Processing extractFormInfo
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [error] Authentication tried without token
[Sun Jan 5 21:55:32 2020] [LLNG:22973] [debug] [error] Authentication tried without token
[Sun Jan 05 21:55:32.875362 2020] [fcgid:warn] [pid 22945:tid 140610358986496] [client 127.0.0.1:50834] mod_fcgid: stderr: Can't call method "setToken" on an undefined value at /home/maudoux/lemonldap-ng/lemonldap-ng-portal/blib/lib/Lemonldap/NG/Portal/Auth/_WebForm.pm line 106, <FILE> line 1.
auth.example.com:80 127.0.0.1 - - [05/Jan/2020:21:55:32 +0100] "POST / HTTP/1.1" 500 1727 -
Backends used
Demo
Possible fixes
Test if captcha is enabled