From edbf8584b4d1887cb29e206b8a3b8991f47d710d Mon Sep 17 00:00:00 2001 From: Jeromy Date: Sun, 30 Dec 2012 22:25:21 +0800 Subject: [PATCH] join as default user --- bbb_django/bbb/views/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bbb_django/bbb/views/core.py b/bbb_django/bbb/views/core.py index 00af59d..363124f 100644 --- a/bbb_django/bbb/views/core.py +++ b/bbb_django/bbb/views/core.py @@ -178,7 +178,10 @@ def join_meeting(request, meeting_id): err_msg = ErrorList([_("Wrong password")]) - form = form_class() + if request.user: + form = form_class(initial={'name': request.user}) + else: + form = form_class() if err_msg != '': form.errors['password'] = err_msg #errors = form.errors.setdefault("password", ErrorList())