Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
dynamicweb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
24
Merge Requests
24
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ungleich-public
dynamicweb
Commits
f539967a
Commit
f539967a
authored
Mar 06, 2020
by
PCoder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set in_ldap even when resetting dummy credential
parent
b076debf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
membership/models.py
membership/models.py
+2
-2
No files found.
membership/models.py
View file @
f539967a
...
...
@@ -233,8 +233,6 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
ldap_manager
.
create_user
(
self
.
username
,
password
=
password
,
firstname
=
first_name
,
lastname
=
last_name
,
email
=
self
.
email
)
self
.
in_ldap
=
True
self
.
save
()
else
:
# User exists already in LDAP, but with a dummy credential
# We are here implies that the user has successfully
...
...
@@ -244,6 +242,8 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
# was set to a dummy value while migrating users from Django to
# LDAP
ldap_manager
.
change_password
(
self
.
username
,
password
)
self
.
in_ldap
=
True
self
.
save
()
def
__str__
(
self
):
# __unicode__ on Python 2
return
self
.
email
...
...
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