diff --git a/bbb_django/bbb/templates/meetings.html b/bbb_django/bbb/templates/meetings.html
index 5b5d7d4..69cc78f 100644
--- a/bbb_django/bbb/templates/meetings.html
+++ b/bbb_django/bbb/templates/meetings.html
@@ -9,7 +9,7 @@
{% trans "Meetings" %}
{% if meetings %}
{% for meeting in meetings %}
- - {{ meeting.name }} {% trans "view details" %}
+
-
{% if meeting.info.started %}
{% if meeting.running == 'true' %}
@@ -29,6 +29,7 @@
{% trans "Meetings" %}
{% endif %}
+ {{ meeting.name }} {% trans "view details" %}
{% for item in meeting.info.items %}
diff --git a/bbb_django/bbb/views/core.py b/bbb_django/bbb/views/core.py
index 763e454..00af59d 100644
--- a/bbb_django/bbb/views/core.py
+++ b/bbb_django/bbb/views/core.py
@@ -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, {