Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
f30ed7e6
Commit
f30ed7e6
authored
Dec 01, 2012
by
Sofia Papagiannaki
Browse files
Fix infinite loop in case another user with the same email already exists
parent
e8c77add
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/models.py
View file @
f30ed7e6
...
...
@@ -498,13 +498,8 @@ class AstakosUser(User):
if
not
self
.
id
:
# set username
while
not
self
.
username
:
username
=
self
.
email
try
:
AstakosUser
.
objects
.
get
(
username
=
username
)
except
AstakosUser
.
DoesNotExist
:
self
.
username
=
username
self
.
username
=
self
.
email
self
.
validate_unique_email_isactive
()
if
self
.
is_active
and
self
.
activation_sent
:
# reset the activation sent
...
...
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