Revision 606dea8d snf-astakos-app/astakos/im/views.py
b/snf-astakos-app/astakos/im/views.py | ||
---|---|---|
487 | 487 |
except AstakosUser.DoesNotExist: |
488 | 488 |
instance = None |
489 | 489 |
|
490 |
pending_user = None |
|
490 | 491 |
third_party_token = request.REQUEST.get('third_party_token', None) |
491 | 492 |
if third_party_token: |
492 | 493 |
pending = get_object_or_404(PendingThirdPartyUser, |
493 | 494 |
token=third_party_token) |
494 | 495 |
provider = pending.provider |
495 | 496 |
instance = pending.get_user_instance() |
497 |
if pending.existing_user().count() > 0: |
|
498 |
pending_user = pending.existing_user().get() |
|
499 |
if request.method == "GET": |
|
500 |
messages.warning(request, pending_user.get_inactive_message()) |
|
501 |
|
|
502 |
|
|
503 |
extra_context['pending_user_exists'] = pending_user |
|
496 | 504 |
|
497 | 505 |
try: |
498 | 506 |
if not backend: |
Also available in: Unified diff