Skip to content

Commit b88fea4

Browse files
Potential fix for code scanning alert no. 5: Exposure of private information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent f344d6b commit b88fea4

File tree

1 file changed

+1
-1
lines changed
  • YTVidShareBackend/VideoSharingService/VideoSharingService/Controllers

1 file changed

+1
-1
lines changed

YTVidShareBackend/VideoSharingService/VideoSharingService/Controllers/UserController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public async Task<IActionResult> GetUser(string id)
111111
public async Task<IActionResult> Register([FromBody] CreateUserDTO userDTO)
112112
{
113113
var sanitizedEmail = userDTO.Email?.Replace("\r", "").Replace("\n", "");
114-
_logger.LogInformation($"Registration attempt for {sanitizedEmail}");
114+
_logger.LogInformation("Registration attempt received.");
115115
if (!ModelState.IsValid)
116116
{
117117
_logger.LogError($"Invalid post attempt {nameof(Register)}");

0 commit comments

Comments
 (0)