MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / actionCertList

Method actionCertList

src/Ui/UiWebsocket.py:861–872  ·  view source on GitHub ↗
(self, to)

Source from the content-addressed store, hash-verified

859 # List user's certificates
860 @flag.admin
861 def actionCertList(self, to):
862 back = []
863 auth_address = self.user.getAuthAddress(self.site.address)
864 for domain, cert in list(self.user.certs.items()):
865 back.append({
866 "auth_address": cert["auth_address"],
867 "auth_type": cert["auth_type"],
868 "auth_user_name": cert["auth_user_name"],
869 "domain": domain,
870 "selected": cert["auth_address"] == auth_address
871 })
872 return back
873
874 # List all site info
875 @flag.admin

Callers

nothing calls this directly

Calls 2

getAuthAddressMethod · 0.80
itemsMethod · 0.80

Tested by

no test coverage detected