fix safer_obj not set

This commit is contained in:
Antonio J. Delgado 2024-11-11 17:28:44 +02:00
parent be674aa74f
commit 6cb7783bed

View file

@ -653,9 +653,9 @@ class NextcloudHandler:
post_obj['username'] = '' post_obj['username'] = ''
if not 'url' in post_obj: if not 'url' in post_obj:
post_obj['url'] = '' post_obj['url'] = ''
safer_obj = dict(post_obj, **{ 'password': '***' })
if not self.exists_password(post_obj): if not self.exists_password(post_obj):
try: try:
safer_obj = dict(post_obj, **{ 'password': '***' })
self.debug( self.debug(
{ "action": "create_password", "object": safer_obj } { "action": "create_password", "object": safer_obj }
) )