fix complete profile for new user
This commit is contained in:
parent
f95beb726f
commit
855ad3912c
3 changed files with 40 additions and 0 deletions
|
@ -19,6 +19,9 @@ def login_view(request):
|
|||
renders login page and authenticating user POST requests
|
||||
to log user in
|
||||
"""
|
||||
# If already authenticated, go straight to request list
|
||||
if request.user.is_authenticated:
|
||||
return redirect("processes:request_list")
|
||||
if request.method == "POST":
|
||||
username = request.POST.get("username")
|
||||
password = request.POST.get("password")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue