Skip to content

help me with logout #4

Open
Open
@chinnaphani

Description

@chinnaphani

here is my code in views, can you plz help me with logout session.

def loginPage(request): if request.method == 'POST': username = request.POST.get('username') password = request.POST.get('password') if get_LDAP_user(username,password) is None: return HttpResponse ('You ID does not exit') try: user = User.objects.get(username=username) except User.DoesNotExist: user = User(username=username) user.is_staff = True user.save() return HttpResponse ('You are entered') # print(user) my_context = {} return render(request,"login.html",my_context)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions