Skip to content

Commit

Permalink
Fix #1010: Re order authentication (#1012)
Browse files Browse the repository at this point in the history
Re order auth for trends
  • Loading branch information
tsadpbb authored Dec 16, 2024
1 parent 252ef02 commit 9753a1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Nagios Core 4 Change Log
4.5.9 - 2024-XX-XX
------------------
* Fix unreachable notifications (Dylan Anderson)
* Fix authentication in trends.cgi (Dylan Anderson)

4.5.8 - 2024-11-19
------------------
Expand Down
6 changes: 3 additions & 3 deletions cgi/trends.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,6 @@ int main(int argc, char **argv) {
/* get the arguments passed in the URL */
process_cgivars();

/* get authentication information */
get_authentication_information(&current_authdata);

result = read_all_object_configuration_data(main_config_file, READ_ALL_OBJECT_DATA);
if(result == ERROR) {
if(mode == CREATE_HTML) {
Expand All @@ -343,6 +340,9 @@ int main(int argc, char **argv) {

document_header(TRUE);

/* get authentication information */
get_authentication_information(&current_authdata);

if(compute_time_from_parts == TRUE)
compute_report_times();

Expand Down

0 comments on commit 9753a1d

Please sign in to comment.