fix ajax calls when app running from app.psgi * dance() deprecated in favour of to_app() * but to_app() didn't load Routes::AJAX routes so couldn't find ajax_get_diagnoses route * see bin/app.psgi.readme * modifying app.psgi to use Plack::Builder fixed it but not when used by Apache (which used bin/app.pl->dance) * recurrent problems with separate AJAX route so combined the only 1 into main Routes file, prefixed as '/ajax' * separated test schema into its own file and separated reports.t into routes.t & model.t * change reporter.fgci (Apache script) to use bin/app.psgi (->to_app)
change registration email testing: * change env param MY_EMAIL_SENDER_TRANSPORT to EMAIL_SENDER_TRANSPORT * replace /tmp file with 'email_as_string' tt param and use Email::Sender::Simple->default_transport->deliveries for testing email params * allow command-line override of default EMAIL_SENDER_TRANSPORT setting to force email failure
fix authentication using DPAE::DB * re-writing user profile into session after loading roles replaced draft_report_users.id with users.id so previous reports did not load (expects draft_report_users.id) - now adding roles to existing user-profile * replace mysql-specific functions with sqlite-compatible equivalents * new reports.t for testing model functions and user authentication * fix main.tt error - loaded /register link because an empty grep is true
replace Config DPAE provider with database provider; had to adjust Data::Printer alias in Routes to avoid errors due to possible clash with another package
include password in call to DPAE authenticate_user() - something changed in DPAE so that password now required for authentication to get logged_in_user & logged_in_user_realm session entries
modified calculation to load either next pagination link or pdf download link - was failing to provide link when total reports = multiples of entries_per_page (20, 40, 60, etc)