Skip to content

Commit 7558c03

Browse files
committed
Don't log SFTP logins, it just is noisy
1 parent 8b59c1c commit 7558c03

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

app/Http/Controllers/Api/Remote/SftpAuthenticationController.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@ public function __invoke(SftpAuthenticationFormRequest $request): JsonResponse
7878

7979
$this->validateSftpAccess($user, $server);
8080

81-
Activity::event('auth:sftp.success')->actor($user)
82-
->subject($user)
83-
->property(array_filter([
84-
'method' => isset($key) ? 'ssh_key' : 'password',
85-
'fingerprint' => isset($key) ? 'SHA256:' . $key->getFingerprint('sha256') : null,
86-
]))
87-
->log();
88-
8981
return new JsonResponse([
9082
'user' => $user->uuid,
9183
'server' => $server->uuid,

resources/lang/en/activity.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
'token' => 'Solved two-factor challenge',
1818
'ip-blocked' => 'Blocked request from unlisted IP address for :identifier',
1919
'sftp' => [
20-
'success' => 'Logged in using SFTP',
2120
'fail' => 'Failed SFTP log in',
2221
],
2322
],

0 commit comments

Comments
 (0)