On Mon, Aug 24, 2020, 5:46 PM Kamakshi Aggarwal <kamakshi23...@gmail.com> wrote: > > Now if user leaves the company how should I set "is_active" field to > False. >
There are two ways to do it. One is to write a view which lets someone in HR turn it off. The other is to use Django Admin with the correct privileges and do the same. If is_active == False, django.auth will disable login for that user. I don't know about your SSO backend. You need to ensure that it respects is_active in the same way as Django. Cheers Mike -- Signed email is an absolute defence against phishing. This email has been signed with my private key. If you import my public key you can automatically decrypt my signature and be sure it came from me. Just ask and I'll send it to you. Your email software can handle signing. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c74b00a4-c2ff-e7f5-1508-395c822a35f5%40dewhirst.com.au.
signature.asc
Description: OpenPGP digital signature