Skip to content

Commit f51a376

Browse files
[Fixes #13009] Implement Basic Auth support for Remote Services
1 parent 4a5075b commit f51a376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geonode/services/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Service(ResourceBase):
7979
# Supported Capabilities
8080

8181
def save(self, notify=False, *args, **kwargs):
82-
if kwargs.get("force_insert", False):
82+
if kwargs.get("force_insert", False) and self.password:
8383
# if is the first creation, we must encrypt the password
8484
self.password = self.set_password(self.password)
8585
return super().save(notify, *args, **kwargs)

0 commit comments

Comments
 (0)