Skip to content

Commit

Permalink
Username and password fields on ULN Remotes should be hidden
Browse files Browse the repository at this point in the history
closes pulp#2428
  • Loading branch information
dralley committed Mar 25, 2022
1 parent a0f517d commit b3d9279
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/2428.bugfix
@@ -0,0 +1 @@
Fix ULN remote `username` and `password` fields which ought to have been write-only and hidden.
4 changes: 3 additions & 1 deletion pulp_rpm/app/serializers/repository.py
Expand Up @@ -170,11 +170,13 @@ class UlnRemoteSerializer(RpmBaseRemoteSerializer):
username = serializers.CharField(
help_text=_("Your ULN account username."),
required=True,
write_only=True,
)

password = serializers.CharField(
help_text=_("Your ULN account password."),
required=True,
write_only=True,
style={"input_type": "password"},
)

url = serializers.CharField(
Expand Down

0 comments on commit b3d9279

Please sign in to comment.