Skip to content

Commit

Permalink
Fix code scanning alert no. 8: Clear-text logging of sensitive inform…
Browse files Browse the repository at this point in the history
…ation (#411)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
mstmdev and github-advanced-security[bot] authored Dec 12, 2024
1 parent bdbd0d5 commit 236718a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handler/login_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (h *loginHandler) Handle(c *gin.Context) {
h.logger.Info("login success, userid=%d username=%s remote=%s", loginUser.UserId, loginUser.UserName, c.Request.RemoteAddr)
c.Redirect(http.StatusFound, returnUrl)
} else {
h.logger.Info("login failed, username=%s password=%s remote=%s", userName, password, c.Request.RemoteAddr)
h.logger.Info("login failed, username=%s remote=%s", userName, c.Request.RemoteAddr)
c.Redirect(http.StatusFound, server.LoginIndexFullRoute)
}
}

0 comments on commit 236718a

Please sign in to comment.