Test all password reset by mail workflows
When testing password reset, submitting twice the same mail did not show a confirmation page to inform that a mail was already sent.
The log seems to show the opposite:
[debug] Build URL http://auth.example.com:19876/resetpwd?skin=bootstrap
[debug] Redirect 127.0.0.1 to portal (url was /resetpwd?skin=bootstrap)
[debug] User not authenticated, Try in use, cancel redirection
[debug] Start routing resetpwd
[debug] Trying to load token 1537653191_524
[debug] Good captcha response
[debug] Captcha code verified
[debug] Processing getUser
[debug] Processing setSessionInfo
[debug] Processing setMacros
[debug] Processing setGroups
[debug] Processing setPersistentSessionInfo
[debug] Persistent session found for dwho
[debug] Restore persistent parameter _loginHistory
[debug] Restore persistent parameter _updateTime
[debug] Processing setLocalGroups
[debug] Try to get SSO session be2b1fb4c2201bf63c2243073335d0262b9b399965a375c4acd137f7c8803456
[debug] Return SSO session be2b1fb4c2201bf63c2243073335d0262b9b399965a375c4acd137f7c8803456
[debug] Mail session found: be2b1fb4c2201bf63c2243073335d0262b9b399965a375c4acd137f7c8803456
[debug] Mail expiration timestamp: 1537796370
[debug] Mail start timestamp: 1537724370
[notice] Reset mail already sent to dwho
[debug] Display called with code: 72
[debug] Skin bootstrap selected from GET/POST parameter
[debug] Display "confirm mail sent"
[debug] Starting HTML generation using /home/clement/dev/lemonldap-ng/lemonldap-ng-portal/site/templates/bootstrap/mail.tpl
[debug] Skin bootstrap selected from GET/POST parameter
[debug] Sending /home/clement/dev/lemonldap-ng/lemonldap-ng-portal/site/templates/bootstrap/mail.tpl
[debug] Apply following CSP : default-src 'self';img-src 'self' data:;style-src 'self';font-src 'self';connect-src 'self';form-action 'self';frame-ancestors 'none';
auth.example.com:80 127.0.0.1 - - [23/Sep/2018:19:51:21 +0200] "POST /resetpwd?skin=bootstrap HTTP/1.1" 200 7597
auth.example.com:80 127.0.0.1 - - [23/Sep/2018:19:51:21 +0200] "GET /static/bwr/bootstrap/dist/css/bootstrap-theme.css HTTP/1.1" 302 543
Maybe an issue in the template.