Skip to content

Commit

Permalink
chg: Avoid autocomplete password in capture form
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Feb 17, 2025
1 parent d7d8808 commit 19205ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_icon(icon_id: str) -> Icon | None:
all_timezones_set: dict[str, str] = {}
for tzname in sorted(available_timezones()):
if offset := ZoneInfo(tzname).utcoffset(datetime.now(timezone.utc)):
all_timezones_set[tzname] = f"{offset.total_seconds() / (60 * 60):+06.2f}"
all_timezones_set[tzname] = f"UTC{offset.total_seconds() / (60 * 60):+06.2f}"


def get_tz_info() -> tuple[str | None, str, dict[str, str]]:
Expand Down
6 changes: 3 additions & 3 deletions website/web/templates/capture.html
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@
<input class="form-control" list="tzOptions" name="timezone_id" id="timezone_id" aria-label="Pick the timezone for the capture" placeholder="Europe/Vatican">
<datalist id="tzOptions">
{% for tz, offset in all_timezones.items() %}
<option value="{{tz}}">{{tz}} (UTC{{offset}})</option>
<option value="{{tz}}">{{tz}} ({{offset}})</option>
{%endfor%}
</datalist>
<div class="alert alert-info" role="alert">
Defaults to localtime: {{local_TZ}} - {{local_UTC_offset}}.
Defaults to localtime: {{local_TZ}} ({{local_UTC_offset}}).
</div>
</div>
</div>
Expand Down Expand Up @@ -459,7 +459,7 @@
<label class="visually-hidden" for="http_auth_password">Password</label>
<div class="input-group">
<div class="input-group-text">Password</div>
<input class="form-control" type="password" id="http_auth_password" name="http_auth_password" aria-describedby="http_auth_password" placeholder="Yackety Yak">
<input class="form-control" autocomplete="new-password" type="password" id="http_auth_password" name="http_auth_password" aria-describedby="http_auth_password" placeholder="Yackety Yak">
</div>
</div>
</div>
Expand Down

0 comments on commit 19205ea

Please sign in to comment.