Add tests for register and login endpoints
Some checks failed
check / check (push) Failing after 1m39s

This commit is contained in:
2026-02-27 04:56:51 -08:00
parent 3cd942ffa5
commit 7047167dc8
4 changed files with 528 additions and 47 deletions

View File

@@ -28,7 +28,7 @@ func (hdlr *Handlers) handleRegister(
) {
type registerRequest struct {
Nick string `json:"nick"`
Password string `json:"password"`
Password string `json:"password"` //nolint:gosec // not a hardcoded secret
}
var payload registerRequest
@@ -134,7 +134,7 @@ func (hdlr *Handlers) handleLogin(
) {
type loginRequest struct {
Nick string `json:"nick"`
Password string `json:"password"`
Password string `json:"password"` //nolint:gosec // not a hardcoded secret
}
var payload loginRequest