Skip to content

p2 password as row of revealable stars#44

Open
Fingel wants to merge 1 commit intodevfrom
1451-password-stars
Open

p2 password as row of revealable stars#44
Fingel wants to merge 1 commit intodevfrom
1451-password-stars

Conversation

@Fingel
Copy link
Copy Markdown
Contributor

@Fingel Fingel commented Apr 30, 2026

Hides the password on the profile page, making the password on revealed on click.
Also uses a proper password widget on the actual update form.
Solves TOMToolkit/tom_base#1451 for this app, at least.

@Fingel Fingel requested review from jchate6 and phycodurus April 30, 2026 19:09
@jchate6 jchate6 moved this to Needs Review in TOM Toolkit May 1, 2026
Copy link
Copy Markdown
Contributor

@jchate6 jchate6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few ideas for minor improvements.

Comment thread tom_eso/forms.py
label="P2 password",
help_text="Enter your Phase 2 Tool password. Leave blank to keep unchanged."
help_text="Enter your Phase 2 Tool password. Leave blank to keep unchanged.",
widget=forms.PasswordInput(render_value=True)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to add a revelation option to the form as well? It feels weird to be able to edit this field without seeing what you are typing...

<input
type="password"
readonly
value="{{ field_data.value }}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would benefit from an eye symbol off to the right to let people know more obviously that they can reveal the password without hovering for a second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

3 participants