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 3, 2024
1 parent 838e0dd commit 8f98dd9
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 8f98dd9

Please sign in to comment.