-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEE/NCg7Xf1UydoVFgpGvW31BqCOLMFAl9EsUgACgkQGvW31BqC
OLN8/wf/b9eAMhgLtwNIjI7mSPoGmQoneZ2NJYiNBe0WQCxpjoA+YRxi1ZI/uHcX
rsnD4cgcFJeyyHyEn7FLnoChY1M5VhTszOMHlrKJX8wU8kg4ZHLPXzuwXIpYPL38
VPi4uE90fAp0EVL+s8j3wDDRav/ccgyV6ySqMJJhb3Fp+BhXyJIHkn773U3t9/gV
iuj0Q+kk1dBiW6kTswAGhXG3N7l6P/cMIHFIAv8t/ggfOkkf+mq4f0KV8G273M0i
poKNJ4HMieo6QkaolqbkML6/qoS0kKT42RJ1usZwGhhXy8UQpyos8E4ZpM+fW8NB
mT8H4RcLwYteOyFRYs3Fi3GwRltKEQ==
=kZhj
-----END PGP SIGNATURE-----
On Mon, Aug 24, 2020, 5:46 PM Kamakshi Aggarwal
<kamakshi23989@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+unsubscribe@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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment