ThomasVermes / report_dashboard_views_log

This code want to log each report view
MIT License
0 stars 0 forks source link

Page visit is logged even if the user is not yet logged-in #1

Closed ThomasVermes closed 1 month ago

ThomasVermes commented 5 months ago

If a user try to vist the page, but is loggin-time is exausted and it is request to insert his/her password again. It will be directed to the log-in page, but the module log the page visit anyway without username resulting in 2 logged records:

image

ThomasVermes commented 5 months ago

After documentation https://github.com/vanderbilt-redcap/external-module-framework-docs/blob/ed80406f4415342c203efdf2be44a98bfce3e51e/methods/README.md the log() method "in non-authenticated contexts must be explicitly allowed by setting the enable-no-auth-logging flag in config.json"

a post in the redcap community is sent https://redcap.vanderbilt.edu/community/post.php?id=226777

ThomasVermes commented 5 months ago

it seems the cause was the php closing with ?> fixed in v1.0.1

ThomasVermes commented 5 months ago

it was fixed only on development but on production (EM downloaded from official RC repository) the bug is still there