mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 21:37:49 -05:00
fixed share link with pre defined username
This commit is contained in:
@@ -422,12 +422,11 @@ def signup(request, token):
|
||||
valid_until__gte=datetime.today(), used_by=None, uuid=token) \
|
||||
.first():
|
||||
if request.method == 'POST':
|
||||
|
||||
form = UserCreateForm(request.POST)
|
||||
updated_request = request.POST.copy()
|
||||
if link.username != '':
|
||||
data = dict(form.data)
|
||||
data['name'] = link.username
|
||||
form.data = data
|
||||
updated_request.update({'name': link.username})
|
||||
|
||||
form = UserCreateForm(updated_request)
|
||||
|
||||
if form.is_valid():
|
||||
if form.cleaned_data['password'] != form.cleaned_data['password_confirm']: # noqa: E501
|
||||
|
||||
Reference in New Issue
Block a user