Skip to content

Commit

Permalink
removed "password" field from reporters
Browse files Browse the repository at this point in the history
  • Loading branch information
adammck committed Apr 21, 2009
1 parent a66eecf commit b22af8f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion apps/nigeria/formslogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def validate(self, *args, **kwargs):
message = args[0]
form_entry = args[1]
# in case we need help, build a valid reminder string
required = ["location", "role", "password", "name"]
required = ["location", "role", "name"]
help = ("%s register " % form_entry.domain.code.lower()) +\
" ".join(["<%s>" % t for t in required])
if form_entry.form.type == "register":
Expand Down
1 change: 0 additions & 1 deletion apps/reporters/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class Reporter(models.Model):
alias = models.CharField(max_length=20, unique=True)
first_name = models.CharField(max_length=30, blank=True)
last_name = models.CharField(max_length=30, blank=True)
password = models.CharField(max_length=30, blank=True)
groups = models.ManyToManyField(ReporterGroup, blank=True)

# here are some fields that don't belong here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ <h2>{% if reporter %}Edit {{ reporter }}{% else %}Add a Reporter{% endif %}</h2>
<input type="text" class="required" id="fm-rep-add-alias" name="alias"{% if reporter %} value="{{ reporter.alias }}"{% endif %} />
<p class="help">Must be alphanumeric, up to 20 characters.</p>
</div>
<div>
<label for="fm-rep-add-password">Password</label>
<input type="text" class="required" id="fm-rep-add-password" name="password"{% if reporter %} value="{{ reporter.password }}"{% endif %} />
<p class="help">If provided, reporters must supply this password when identifying themselves.</p>
</div>
<div>
<label>Name</label>
<div>
Expand Down

0 comments on commit b22af8f

Please sign in to comment.