Fix certAdd error
This commit is contained in:
parent
41ac8dc781
commit
bea212a8d1
1 changed files with 2 additions and 2 deletions
|
@ -518,13 +518,13 @@ class UiWebsocket(object):
|
||||||
if res is True:
|
if res is True:
|
||||||
self.cmd(
|
self.cmd(
|
||||||
"notification",
|
"notification",
|
||||||
["done", _("{_[New certificate added:]} <b>{auth_type}/{auth_user_name}@{domain}</b>.")]
|
["done", _("{_[New certificate added]:} <b>{auth_type}/{auth_user_name}@{domain}</b>.")]
|
||||||
)
|
)
|
||||||
self.response(to, "ok")
|
self.response(to, "ok")
|
||||||
elif res is False:
|
elif res is False:
|
||||||
# Display confirmation of change
|
# Display confirmation of change
|
||||||
cert_current = self.user.certs[domain]
|
cert_current = self.user.certs[domain]
|
||||||
body = _("{_[You current certificate:]} <b>{cert_current[auth_type]}/{cert_current[auth_user_name]}@{domain}</b>")
|
body = _("{_[Your current certificate]:} <b>{cert_current[auth_type]}/{cert_current[auth_user_name]}@{domain}</b>")
|
||||||
self.cmd(
|
self.cmd(
|
||||||
"confirm",
|
"confirm",
|
||||||
[body, _("Change it to {auth_type}/{auth_user_name}@{domain}")],
|
[body, _("Change it to {auth_type}/{auth_user_name}@{domain}")],
|
||||||
|
|
Loading…
Reference in a new issue