Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rixx
uffd
Commits
fdd42384
Verified
Commit
fdd42384
authored
3 years ago
by
sistason
Browse files
Options
Downloads
Patches
Plain Diff
do not set values when they don't change during update
parent
bd7b74f3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deps/ldapalchemy
+1
-1
1 addition, 1 deletion
deps/ldapalchemy
uffd/user/views_user.py
+2
-2
2 additions, 2 deletions
uffd/user/views_user.py
with
3 additions
and
3 deletions
ldapalchemy
@
7a232d30
Compare
40ee661e
...
7a232d30
Subproject commit
40ee661e418dd7866b9dc539fa6544cb12f9cd70
Subproject commit
7a232d305fda3e261b6f8d3c0958a16f4c2e8d8b
This diff is collapsed.
Click to expand it.
uffd/user/views_user.py
+
2
−
2
View file @
fdd42384
...
...
@@ -46,11 +46,11 @@ def update(uid=None):
return
redirect
(
url_for
(
'
user.show
'
))
else
:
user
=
User
.
query
.
filter_by
(
uid
=
uid
).
first_or_404
()
if
not
user
.
set_mail
(
request
.
form
[
'
mail
'
]):
if
user
.
mail
!=
request
.
form
[
'
mail
'
]
and
not
user
.
set_mail
(
request
.
form
[
'
mail
'
]):
flash
(
'
Mail is invalid
'
)
return
redirect
(
url_for
(
'
user.show
'
,
uid
=
uid
))
new_displayname
=
request
.
form
[
'
displayname
'
]
if
request
.
form
[
'
displayname
'
]
else
request
.
form
[
'
loginname
'
]
if
not
user
.
set_displayname
(
new_displayname
):
if
user
.
displayname
!=
new_displayname
and
not
user
.
set_displayname
(
new_displayname
):
flash
(
'
Display name does not meet requirements
'
)
return
redirect
(
url_for
(
'
user.show
'
,
uid
=
uid
))
new_password
=
request
.
form
.
get
(
'
password
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment