示例#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()
示例#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()
示例#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()
示例#4
0
 def handle(self, *args, **options):
     if options["realm"]:
         realm = get_realm(options["realm"])
         delete_realm_user_sessions(realm)
     else:
         delete_all_user_sessions()
示例#5
0
 def handle(self, *args, **options):
     if options["realm"]:
         realm = Realm.objects.get(domain=options["realm"])
         delete_realm_user_sessions(realm)
     else:
         delete_all_user_sessions()
示例#6
0
 def handle(self, *args, **options):
     if options["realm"]:
         realm = get_realm(options["realm"])
         delete_realm_user_sessions(realm)
     else:
         delete_all_user_sessions()