feat: password-based registration and login (closes #1) #23
@@ -28,7 +28,7 @@ func (hdlr *Handlers) handleRegister(
|
|||||||
) {
|
) {
|
||||||
type registerRequest struct {
|
type registerRequest struct {
|
||||||
Nick string `json:"nick"`
|
Nick string `json:"nick"`
|
||||||
Password string `json:"password"` //nolint:gosec // not a hardcoded secret
|
Password string `json:"password"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var payload registerRequest
|
var payload registerRequest
|
||||||
@@ -134,7 +134,7 @@ func (hdlr *Handlers) handleLogin(
|
|||||||
) {
|
) {
|
||||||
type loginRequest struct {
|
type loginRequest struct {
|
||||||
Nick string `json:"nick"`
|
Nick string `json:"nick"`
|
||||||
Password string `json:"password"` //nolint:gosec // not a hardcoded secret
|
Password string `json:"password"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var payload loginRequest
|
var payload loginRequest
|
||||||
|
|||||||
Reference in New Issue
Block a user