Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit d59bdce

Browse files
Merge pull request #27 from melanger/patch-1
Log success only on success
2 parents 59dcb6c + e79d163 commit d59bdce

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
#### Fixed
6+
- Log info message about successful authentication only after successful authentication to SP
57

68
## [v3.1.0]
79
#### Added

lib/Auth/Process/DatabaseCommand.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@ public static function insertLogin(&$request, &$date)
7373
"(identifier, name) VALUES (?, ?) ON DUPLICATE KEY UPDATE name = ?"
7474
);
7575
$stmt->bind_param("sss", $spEntityId, $spName, $spName);
76-
$stmt->execute();
76+
$success = $stmt->execute();
77+
if ($success) {
78+
Logger::info("The login log was successfully stored in database");
79+
}
7780
}
7881
}
7982

80-
Logger::info("The login log was successfully stored in database");
81-
8283
$conn->close();
8384
}
8485

0 commit comments

Comments
 (0)