CMSgov / bluebutton-web-server

Blue Button API
https://sandbox.bluebutton.cms.gov
Other
40 stars 24 forks source link

Added static FE rules for passowrds and url validations #1229

Closed loganbertram closed 3 months ago

loganbertram commented 3 months ago

JIRA Ticket: BB2-3281

What Does This PR Do?

Following BB2-1651, we determined the need to expose validation rules for passwords and callback URLs.

We should do this in a static fashion.

What Should Reviewers Watch For?

If you're reviewing this PR, please check for these things in particular:

Locally, http://localhost:8000/v1/o/applications/register/ should display help text below the callback urls text area. Additionally, the signup page will need to be validated upon sandbox deployment (local client invokes sandbox for signups, making it difficult to test locally without a test deplyment). You can validate the added help_text field in accounts/forms.py against existing PW validation rules.

Validation

Screenshot 2024-07-25 at 10 54 19 AM Screenshot 2024-07-25 at 10 54 26 AM

What Security Implications Does This PR Have?

Please indicate if this PR does any of the following:

Any Migrations?

loganbertram commented 3 months ago

Updated:

Screenshot 2024-07-29 at 3 22 24 PM Screenshot 2024-07-29 at 2 45 07 PM