Skip to content

Commit c364210

Browse files
Update verbose name + help text for JIRA password field
1 parent a6b411a commit c364210

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dojo/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2490,7 +2490,7 @@ class Meta:
24902490

24912491

24922492
class BaseJiraForm(forms.ModelForm):
2493-
password = forms.CharField(widget=forms.PasswordInput, required=True)
2493+
password = forms.CharField(widget=forms.PasswordInput, required=True, help_text=JIRA_Instance._meta.get_field("password").help_text, label=JIRA_Instance._meta.get_field("password").verbose_name)
24942494

24952495
def test_jira_connection(self):
24962496
import dojo.jira_link.helper as jira_helper

dojo/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3840,8 +3840,8 @@ def __str__(self):
38403840
class JIRA_Instance(models.Model):
38413841
configuration_name = models.CharField(max_length=2000, help_text=_("Enter a name to give to this configuration"), default="")
38423842
url = models.URLField(max_length=2000, verbose_name=_("JIRA URL"), help_text=_("For more information how to configure Jira, read the DefectDojo documentation."))
3843-
username = models.CharField(max_length=2000)
3844-
password = models.CharField(max_length=2000)
3843+
username = models.CharField(max_length=2000, verbose_name=_("Username/Email"), help_text=_("Username or Email Address, see DefectDojo documentation for more information."))
3844+
password = models.CharField(max_length=2000, verbose_name=_("Password/Token"), help_text=_("Password, API Token, or Personal Access Token, see DefectDojo documentation for more information."))
38453845

38463846
if hasattr(settings, "JIRA_ISSUE_TYPE_CHOICES_CONFIG"):
38473847
default_issue_type_choices = settings.JIRA_ISSUE_TYPE_CHOICES_CONFIG

0 commit comments

Comments
 (0)