Commit ae0b11a8 authored by ale's avatar ale

Sanitize SetAccountRecoveryHint requests

parent b130b8ae
Pipeline #3357 passed with stages
in 5 minutes and 11 seconds
......@@ -228,6 +228,14 @@ type SetAccountRecoveryHintRequest struct {
Response string `json:"recovery_response"`
}
// Sanitize the request.
func (r *SetAccountRecoveryHintRequest) Sanitize() {
r.PrivilegedRequestBase.Sanitize()
if r.Response != "" {
r.Response = sanitizedValue
}
}
// Validate the request.
func (r *SetAccountRecoveryHintRequest) Validate(rctx *RequestContext) error {
var err *validationError
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment