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
308f7c3a
Commit
308f7c3a
authored
Mar 05, 2013
by
Kostas Papadimitriou
Browse files
Astakos activation fix
Additional check to avoid verified inactive users reactivation
parent
ba1ef68c
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/views.py
View file @
308f7c3a
...
...
@@ -679,10 +679,10 @@ def activate(request, greeting_email_template_name='im/welcome_email.txt',
except
AstakosUser
.
DoesNotExist
:
return
HttpResponseBadRequest
(
_
(
astakos_messages
.
ACCOUNT_UNKNOWN
))
if
user
.
is_active
:
if
user
.
is_active
or
user
.
email_verified
:
message
=
_
(
astakos_messages
.
ACCOUNT_ALREADY_ACTIVE
)
messages
.
error
(
request
,
message
)
return
index
(
request
)
return
HttpResponseRedirect
(
reverse
(
'index'
)
)
try
:
activate_func
(
user
,
greeting_email_template_name
,
...
...
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