Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Backend
Merge requests
!2325
Perform password validation in UpdateUser
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Perform password validation in UpdateUser
reset-pwd-validation
into
master
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Valentin Rigal
requested to merge
reset-pwd-validation
into
master
9 months ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
Closes
#1768 (closed)
0
0
Merge request reports
Viewing commit
0b5902c9
Prev
Next
Show latest version
1 file
+
4
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
0b5902c9
Add password validation when updating user
· 0b5902c9
Valentin Rigal
authored
9 months ago
arkindex/users/serializers.py
+
4
−
0
Options
@@ -54,6 +54,10 @@ class UserSerializer(SimpleUserSerializer):
"
auth_token
"
:
{
"
read_only
"
:
True
},
}
def
validate
(
self
,
data
):
data
=
super
().
validate
(
data
)
return
validate_user_password
(
self
.
context
[
"
request
"
].
user
,
data
)
@extend_schema_field
(
inline_serializer
(
name
=
"
Features
"
,
fields
=
{
Loading