feat: password-based registration and login (closes #1) #23

已合併
sneak 將 7 次提交從 feature/auth-passwords 合併至 main 2026-02-28 19:57:41 +01:00
僅顯示提交 52c85724a7 的變更 - 顯示所有提交
+2 -2
查看文件
@@ -28,7 +28,7 @@ func (hdlr *Handlers) handleRegister(
) {
type registerRequest struct {
Nick string `json:"nick"`
Password string `json:"password"` //nolint:gosec // not a hardcoded secret
Password string `json:"password"`
}
var payload registerRequest
@@ -134,7 +134,7 @@ func (hdlr *Handlers) handleLogin(
) {
type loginRequest struct {
Nick string `json:"nick"`
Password string `json:"password"` //nolint:gosec // not a hardcoded secret
Password string `json:"password"`
}
var payload loginRequest