Skip to content

add checks to login shell #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed

add checks to login shell #200

wants to merge 8 commits into from

Conversation

simonLeary42
Copy link
Collaborator

@simonLeary42 simonLeary42 commented Apr 23, 2025

Fixes a WSOD when a user tries to set their login shell with non ascii characters. Also avoids the LDAP warnings generated in testing: https://github.com/UnityHPC/unity-web-portal/actions/runs/14648366156/job/41108067187

It also grays out the submit button when there's no change, when custom shell is empty, when custom shell has leading/trailing whitesapce. All grayed-out reasons are displayed in a <p> next to the button, just like the "request PI account" button and "request account deletion button". see examples in #202

Screen.Recording.2025-04-24.at.2.46.55.PM.mov

@simonLeary42 simonLeary42 force-pushed the non-ascii-shell branch 5 times, most recently from e1e9223 to f6d6b9b Compare April 24, 2025 14:25
@simonLeary42 simonLeary42 changed the title check for special characters in login shell, cleanup account page check for special characters in login shell Apr 24, 2025
@simonLeary42 simonLeary42 changed the title check for special characters in login shell add checks to login shell Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant