Skip to content

Commit

Permalink
added length validation for new user password
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed Oct 9, 2024
1 parent c0f449e commit c16cdc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/frontend/app/components/new-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export default class NewUserComponent extends Component {
@Length(1, 100)
@NotBlank()
username = null;
@tracked @NotBlank() password = null;
@tracked
@Length(5)
@NotBlank()
password = null;
@tracked @Length(1, 20) phone = null;
@tracked schoolId = null;
@tracked primaryCohortId = null;
Expand Down

0 comments on commit c16cdc5

Please sign in to comment.