Captcha in login form is not displayed in case of back-end error
Concerned version
Version: %2.0.16
Platform: All
Summary
Enable captcha in login form.
Auth module = LDAP without LDAP installed to throw an error
Try to login => dwho/dwho + captcha
Login form without captcha
Logs
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [info] No cookie found
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Build URL http://auth.example.com:19876/
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Redirect 127.0.0.1 to portal (url was /)
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] User not authenticated, Try in use, cancel redirection
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Start routing default route
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Processing checkUnauthLogout
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Processing restoreArgs
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Processing controlUrl
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Processing code ref
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Processing extractFormInfo
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Trying to load token 1676419902_16514
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Good captcha response
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Captcha code verified
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Processing getUser
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [error] LDAP Search error 32: No such object
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Returned error: 7 (PE_LDAPERROR)
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Display type standardform
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Skin returned: login
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Calling sendHtml with template login
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Skin bootstrap selected from GET/POST parameter
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Starting HTML generation using /home/christophe/lemonldap-ng/lemonldap-ng-portal/site/templates/bootstrap/login.tpl
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Skin bootstrap selected from GET/POST parameter
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Sending /home/christophe/lemonldap-ng/lemonldap-ng-portal/site/templates/bootstrap/login.tpl
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Apply following CORS policy:
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Access-Control-Allow-Origin
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] *
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Access-Control-Allow-Credentials
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] true
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Access-Control-Allow-Headers
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] *
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Access-Control-Allow-Methods
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] POST,GET
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Access-Control-Expose-Headers
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] *
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Access-Control-Max-Age
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] 86400
[Wed Feb 15 21:10:15 2023] [LLNG:10365] [debug] Apply following CSP: default-src 'self';img-src 'self' data:;style-src 'self';font-src 'self';connect-src 'self';script-src 'self';form-action *;frame-ancestors 'none';
auth.example.com:80 127.0.0.1 - - [15/Feb/2023:21:10:15 +0100] "POST / HTTP/1.1" 200 9573 -
Backends used
LDAP
Possible fixes
Pass token