mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
domain dyndns: do not save recovery password
This commit is contained in:
parent
fc68f769f9
commit
e9802ce2dc
1 changed files with 5 additions and 9 deletions
|
@ -317,11 +317,6 @@ def domain_add(
|
||||||
pass
|
pass
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
if dyndns and dyndns_recovery_password:
|
|
||||||
domain_config_set(
|
|
||||||
domain, "dns.registrar.recovery_password", dyndns_recovery_password
|
|
||||||
)
|
|
||||||
|
|
||||||
hook_callback("post_domain_add", args=[domain])
|
hook_callback("post_domain_add", args=[domain])
|
||||||
|
|
||||||
logger.success(m18n.n("domain_created"))
|
logger.success(m18n.n("domain_created"))
|
||||||
|
@ -710,13 +705,14 @@ class DomainConfigPanel(ConfigPanel):
|
||||||
other_app=app_map(raw=True)[self.entity]["/"]["id"],
|
other_app=app_map(raw=True)[self.entity]["/"]["id"],
|
||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
"recovery_password" in self.future_values
|
"recovery_password" in self.new_values
|
||||||
and self.future_values["recovery_password"]
|
and self.new_values["recovery_password"]
|
||||||
!= self.values["recovery_password"]
|
|
||||||
):
|
):
|
||||||
domain_dyndns_set_recovery_password(
|
domain_dyndns_set_recovery_password(
|
||||||
self.entity, self.future_values["recovery_password"]
|
self.entity, self.new_values["recovery_password"]
|
||||||
)
|
)
|
||||||
|
# Do not save password in yaml settings
|
||||||
|
del self.new_values["recovery_password"]
|
||||||
|
|
||||||
super()._apply()
|
super()._apply()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue