Skip to content

Commit 88bd027

Browse files
committed
Added handling for missing association between login and Person record.
- Legacy-Id: 5932
1 parent b090f1e commit 88bd027

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

ietf/ietfauth/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def profile(request):
8888
try:
8989
person = request.user.get_profile()
9090
except Person.DoesNotExist:
91-
pass
91+
return render_to_response('registration/missing_person.html', context_instance=RequestContext(request))
9292

9393
if request.method == 'POST':
9494
form = PersonForm(request.POST, instance=person)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{# Copyright The IETF Trust 2007, All Rights Reserved #}
2+
{% extends "base.html" %}
3+
4+
{% block content %}
5+
<h1>Missing Person Info</h1>
6+
7+
<p>
8+
There is no person record associated with your login. Please
9+
contact the secretariat at <a href="mailto:ietf-action@ietf.org">ietf-action@ietf.org</a>
10+
and explain the situation.
11+
</p>
12+
{% endblock %}

0 commit comments

Comments
 (0)