Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion auth/handler_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (h *LoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {

var req struct {
Login string `json:"login"`
Password string `json:"password"`
Password string `json:"password"` //nolint:gosec // Password in request
}

if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion auth/handler_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (h *RegisterHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {

var req struct {
Login string `json:"login"`
Password string `json:"password"`
Password string `json:"password"` //nolint:gosec // Password in request
}

if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion auth/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
type User struct {
ID string `db:"id" json:"id"`
Username string `db:"username" json:"username"`
Password string `db:"password" json:"password"`
Password string `db:"password" json:"password"` //nolint:gosec // Not exposed via handlers
Salt string `db:"salt" json:"salt"`
Created time.Time `db:"created" json:"created"`
Updated time.Time `db:"updated" json:"updated"`
Expand Down