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

Method actionCertSet

src/Ui/UiWebsocket.py:854–857  ·  view source on GitHub ↗
(self, to, domain)

Source from the content-addressed store, hash-verified

852 # Set certificate that used for authenticate user for site
853 @flag.admin
854 def actionCertSet(self, to, domain):
855 self.user.setCert(self.site.address, domain)
856 self.site.updateWebsocket(cert_changed=domain)
857 self.response(to, "ok")
858
859 # List user's certificates
860 @flag.admin

Callers 1

actionCertSelectMethod · 0.95

Calls 3

responseMethod · 0.95
setCertMethod · 0.80
updateWebsocketMethod · 0.45

Tested by

no test coverage detected