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

Цей коміт міститься в:
2026-02-27 05:00:51 -08:00
джерело 3cd942ffa5
коміт 7047167dc8
4 змінених файлів з 528 додано та 47 видалено
+2 -2
Переглянути файл
@@ -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