Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
accountserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai3
accountserver
Commits
ae0b11a8
Commit
ae0b11a8
authored
Jun 10, 2019
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sanitize SetAccountRecoveryHint requests
parent
b130b8ae
Pipeline
#3357
passed with stages
in 5 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
actions_user.go
actions_user.go
+8
-0
No files found.
actions_user.go
View file @
ae0b11a8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment