Commit 25ec83c2 authored by dio maulana's avatar dio maulana

day 3

parent 0fbc5e3e
......@@ -145,6 +145,9 @@ def signin(request):
return render(request, 'auth/login.html', {'form': form})
def register(request):
next = request.GET.get('next', '/belajar/products')
if request.user.is_authenticated:
return redirect(next)
if request.method == 'POST':
form = formRegister(request.POST)
post = request.POST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment