|
@ -90,7 +90,7 @@ def show( request, server ): |
|
|
unregged_user_form = MumbleUserPasswordForm; |
|
|
unregged_user_form = MumbleUserPasswordForm; |
|
|
# Unregistered users may or may not want to link an existing account |
|
|
# Unregistered users may or may not want to link an existing account |
|
|
elif settings.ALLOW_ACCOUNT_LINKING: |
|
|
elif settings.ALLOW_ACCOUNT_LINKING: |
|
|
unregged_user_form = MumbleLinkForm; |
|
|
|
|
|
|
|
|
unregged_user_form = MumbleUserLinkForm; |
|
|
else: |
|
|
else: |
|
|
unregged_user_form = MumbleUserForm; |
|
|
unregged_user_form = MumbleUserForm; |
|
|
|
|
|
|
|
@ -107,8 +107,6 @@ def show( request, server ): |
|
|
# find MumbleUser with mumbleid=regform.mumbleid, |
|
|
# find MumbleUser with mumbleid=regform.mumbleid, |
|
|
# if not exists create, save(). |
|
|
# if not exists create, save(). |
|
|
model = regform.save( commit=False ); |
|
|
model = regform.save( commit=False ); |
|
|
model.isAdmin = False; |
|
|
|
|
|
model.server = srv; |
|
|
|
|
|
model.owner = request.user; |
|
|
model.owner = request.user; |
|
|
model.save(); |
|
|
model.save(); |
|
|
return HttpResponseRedirect( reverse( show, kwargs={ 'server': int(server), } ) ); |
|
|
return HttpResponseRedirect( reverse( show, kwargs={ 'server': int(server), } ) ); |
|
|