working base site setup with gatekeeping working
This commit is contained in:
@@ -33,7 +33,7 @@ def gate(request):
|
||||
if hmac.compare_digest(submitted, master):
|
||||
request.session['authorized'] = True
|
||||
request.session.pop('lock_until', None)
|
||||
return redirect('home')
|
||||
return redirect('landing:home')
|
||||
else:
|
||||
_start_lockout(request)
|
||||
return render(request, 'landing/gate.html', {
|
||||
@@ -41,7 +41,7 @@ def gate(request):
|
||||
})
|
||||
|
||||
if request.session.get('authorized'):
|
||||
return redirect('home')
|
||||
return redirect('landing:home')
|
||||
|
||||
return render(request, 'landing/gate.html')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user