status-go/protocol/requests/verify_database_password.go
frank 7a23ac59c4
fix_: ignore log partial API request (#5865)
* fix_: ignore log partial sensitive API request

* chore_: use validator

* chore_: rebase
2024-09-27 11:48:51 +01:00

20 lines
578 B
Go

package requests
import (
"gopkg.in/go-playground/validator.v9"
)
// VerifyDatabasePassword represents a request to verify the database password.
type VerifyDatabasePassword struct {
// KeyUID identifies the specific key in the database.
KeyUID string `json:"keyUID" validate:"required"`
// Password is the password to verify against the database entry.
Password string `json:"password" validate:"required"`
}
// Validate checks the validity of the VerifyDatabasePassword request.
func (v *VerifyDatabasePassword) Validate() error {
return validator.New().Struct(v)
}