|
@ -103,12 +103,10 @@ def show( request, server ): |
|
|
regform = unregged_user_form( request.POST ); |
|
|
regform = unregged_user_form( request.POST ); |
|
|
regform.server = srv; |
|
|
regform.server = srv; |
|
|
if regform.is_valid(): |
|
|
if regform.is_valid(): |
|
|
# TODO: Check if LinkAcc is True, if yes: |
|
|
|
|
|
# find MumbleUser with mumbleid=regform.mumbleid, |
|
|
|
|
|
# if not exists create, save(). |
|
|
|
|
|
model = regform.save( commit=False ); |
|
|
model = regform.save( commit=False ); |
|
|
model.owner = request.user; |
|
|
model.owner = request.user; |
|
|
model.save(); |
|
|
|
|
|
|
|
|
# If we're linking accounts, the change is local only. |
|
|
|
|
|
model.save( dontConfigureMurmur=( "linkacc" in regform.data ) ); |
|
|
return HttpResponseRedirect( reverse( show, kwargs={ 'server': int(server), } ) ); |
|
|
return HttpResponseRedirect( reverse( show, kwargs={ 'server': int(server), } ) ); |
|
|
else: |
|
|
else: |
|
|
displayTab = 1; |
|
|
displayTab = 1; |
|
|