Skip to content

Commit c945dc5

Browse files
committed
Adding some Sentry logging for users trying to login with wrong/unknown email address.
1 parent 4848981 commit c945dc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Services/TimePlanningPlanningService/TimePlanningPlanningService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ public async Task<OperationDataResult<TimePlanningPlanningModel>> IndexByCurrent
289289

290290
if (worker == null)
291291
{
292+
SentrySdk.CaptureMessage($"Worker with email {currentUser.Email} not found");
292293
return new OperationDataResult<TimePlanningPlanningModel>(
293294
false,
294295
localizationService.GetString("SiteNotFound"));
@@ -955,6 +956,7 @@ public async Task<OperationResult> UpdateByCurrentUserNam(
955956

956957
if (worker == null)
957958
{
959+
SentrySdk.CaptureMessage($"Worker with email {currentUser.Email} not found");
958960
return new OperationDataResult<TimePlanningPlanningModel>(
959961
false,
960962
localizationService.GetString("SiteNotFound"));

0 commit comments

Comments
 (0)