Bad error template with Combination and OTT timeout
When using Combination, we have this error screen after OTP timeout:
Logs:
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [info] No cookie found
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Build URL http://auth.example.com:19876/totp2fcheck
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Redirect 127.0.0.1 to portal (url was /totp2fcheck)
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] User not authenticated, Try in use, cancel redirection
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Start routing totp2fcheck
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Module Lemonldap::NG::Portal::Lib::OneTimeToken loaded
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Trying to load token 1564064267_15706
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [notice] Bad (or expired) token 1564064267_15706
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [info] Token expired
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] [info] Token expired
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Processing code ref
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Returned error: 82
Use of uninitialized value $nb in array element at /home/clement/dev/lemonldap-ng/lemonldap-ng-portal/blib/lib/Lemonldap/NG/Portal/Auth/Combination.pm line 135.
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Display type logo
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Skin returned: login
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Calling sendHtml with template login
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Starting HTML generation using /home/clement/dev/lemonldap-ng/lemonldap-ng-portal/site/templates/bootstrap/login.tpl
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Sending /home/clement/dev/lemonldap-ng/lemonldap-ng-portal/site/templates/bootstrap/login.tpl
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [debug] Apply following CORS policy : $VAR1 = ['Access-Control-Allow-Origin','*','Access-Control-Allow-Credentials','true','Access-Control-Allow-Headers','*','Access-Control-Allow-Methods','POST,GET','Access-Control-Expose-Headers','*','Access-Control-Max-Age',86400];
[Fri Jul 26 12:18:28 2019] [LLNG:10239] [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 'self';frame-ancestors 'none';
auth.example.com:80 127.0.0.1 - - [26/Jul/2019:12:18:28 +0200] "POST /totp2fcheck HTTP/1.1" 200 8504
auth.example.com:80 127.0.0.1 - - [26/Jul/2019:12:18:28 +0200] "GET /static/common/modules/Combination.png HTTP/1.1" 302 543