Ejemplo n.º 1
0
 def handle(self, *args, **options):
     if options["realm"]:
         realm = get_realm(options["realm"])
         delete_realm_user_sessions(realm)
     elif options["deactivated_only"]:
         delete_all_deactivated_user_sessions()
     else:
         delete_all_user_sessions()
Ejemplo n.º 2
0
 def handle(self, *args, **options):
     if options["realm"]:
         realm = get_realm(options["realm"])
         delete_realm_user_sessions(realm)
     elif options["deactivated_only"]:
         delete_all_deactivated_user_sessions()
     else:
         delete_all_user_sessions()
Ejemplo n.º 3
0
 def handle(self, *args, **options):
     # type: (*Any, **Any) -> None
     if options["realm"]:
         realm = get_realm_by_string_id(options["realm"])
         delete_realm_user_sessions(realm)
     elif options["deactivated_only"]:
         delete_all_deactivated_user_sessions()
     else:
         delete_all_user_sessions()