(self, address)
| 168 | # Get cert user name for the site address |
| 169 | # Return: user@certprovider.bit or None |
| 170 | def getCertUserId(self, address): |
| 171 | site_data = self.getSiteData(address, create=False) |
| 172 | if not site_data or "cert" not in site_data: |
| 173 | return None # Site dont have cert |
| 174 | cert = self.certs.get(site_data["cert"]) |
| 175 | if cert: |
| 176 | return cert["auth_user_name"] + "@" + site_data["cert"] |
no test coverage detected