Updated default input field length to 64. Fixed actor to allow unmanaged new methods. Fixed admin interface

This commit is contained in:
Adolfo Gómez García 2020-05-28 13:58:28 +02:00
parent 7ec2197634
commit 6faf6ceaca
4 changed files with 10 additions and 6 deletions

View File

@ -486,12 +486,16 @@ class Unmanaged(ActorV3Action):
ip = self._params['id'][0]['ip'] # Get first IP if no valid ip found
# Generates a certificate and send it to client.
privateKey, cert, password = certs.selfSignedCert(ip)
cert = {'private_key': privateKey, 'server_certificate': cert, 'password': password}
privateKey, certificate, password = certs.selfSignedCert(ip)
cert: typing.Dict[str, str] = {
'private_key': privateKey,
'server_certificate': certificate,
'password': password
}
# Store certificate, secret & port with service if validId
if validId:
service.storeIdInfo(validId, {
'cert': cert,
'cert': certificate,
'secret': self._params['secret'],
'port': int(self._params['port'])
})

View File

@ -233,7 +233,7 @@ class gui:
DATE_TYPE: typing.ClassVar[str] = 'date'
INFO_TYPE: typing.ClassVar[str] = 'dummy'
DEFAULT_LENTGH: typing.ClassVar[int] = 32 # : If length of some fields are not especified, this value is used as default
DEFAULT_LENTGH: typing.ClassVar[int] = 64 # : If length of some fields are not especified, this value is used as default
_data: typing.Dict[str, typing.Any]

File diff suppressed because one or more lines are too long

View File

@ -92,6 +92,6 @@
</svg>
</div>
</uds-root>
<script src="/uds/res/admin/runtime.js?stamp=1589972158" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1589972158" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1589972158" defer></script><script src="/uds/res/admin/main.js?stamp=1589972158" defer></script></body>
<script src="/uds/res/admin/runtime.js?stamp=1590666714" defer></script><script src="/uds/res/admin/polyfills-es5.js?stamp=1590666714" nomodule defer></script><script src="/uds/res/admin/polyfills.js?stamp=1590666714" defer></script><script src="/uds/res/admin/main.js?stamp=1590666714" defer></script></body>
</html>