Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help me with logout #4

Open
chinnaphani opened this issue Jun 1, 2020 · 0 comments
Open

help me with logout #4

chinnaphani opened this issue Jun 1, 2020 · 0 comments

Comments

@chinnaphani
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant