Skip to content

Commit

Permalink
1. fix float right in ie6
Browse files Browse the repository at this point in the history
2. add pwd verfication for join
  • Loading branch information
fuji246 committed Dec 30, 2012
1 parent d6aa2ec commit ffaff96
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bbb_django/bbb/templates/meetings.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2>{% trans "Meetings" %}</h2>
{% if meetings %}
<ul class="large">
{% for meeting in meetings %}
<li>{{ meeting.name }} <a class="more-info">{% trans "view details" %}</a>
<li>
<span class="right">
{% if meeting.info.started %}
{% if meeting.running == 'true' %}
Expand All @@ -29,6 +29,7 @@ <h2>{% trans "Meetings" %}</h2>
<form method="GET" action="{% url join meeting.meeting_id%}"><input type="submit" value="{% trans "Start" %}"/></form>
{% endif %}
</span>
{{ meeting.name }} <a class="more-info">{% trans "view details" %}</a>
<table>
{% for item in meeting.info.items %}
<tr>
Expand Down
20 changes: 17 additions & 3 deletions bbb_django/bbb/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,24 @@ def join_meeting(request, meeting_id):
meeting.started = True
meeting.save()
url = meeting.start()
return HttpResponseRedirect(Meeting.join_url(meeting_id, name, password))
elif password == meeting.attendee_password:
if meeting.started:
return HttpResponseRedirect(Meeting.join_url(meeting_id, name, password))

return HttpResponseRedirect(Meeting.join_url(meeting_id, name, password))
else:
form = form_class()
else:
#Should start the meeting by moderator first
err_msg = ErrorList([_("Should start the meeting by moderator first")])
else:
#wrong password
err_msg = ErrorList([_("Wrong password")])


form = form_class()
if err_msg != '':
form.errors['password'] = err_msg
#errors = form.errors.setdefault("password", ErrorList())
#errors.append(err_msg)

meeting = Meeting.objects.get(id=meeting_id)
context = RequestContext(request, {
Expand Down

0 comments on commit ffaff96

Please sign in to comment.