if neither password and username is given, subscription fails
This commit is contained in:
parent
f5e3925d9b
commit
d54f6eb66e
|
@ -48,7 +48,7 @@ class FeedView(SyndicationFeed):
|
|||
@csrf_exempt
|
||||
def createAccount(request):
|
||||
if 'username' not in request.POST \
|
||||
or 'password' not in request.POST:
|
||||
and 'password' not in request.POST:
|
||||
return HttpResponse(status=500)
|
||||
|
||||
user = User.objects.create_user(request.POST['username'], password=request.POST['password'], is_active=False)
|
||||
|
|
Loading…
Reference in New Issue