Skip to content

Commit

Permalink
allow accents in names for user registration
Browse files Browse the repository at this point in the history
  • Loading branch information
rsiminel committed Dec 9, 2024
1 parent 9da96a4 commit fe1973b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager2/src/app/auth/register/register.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class RegisterComponent implements OnInit {
this.msg="User identifier too short (min 4 characters)";
return;
}
if (!this.first_name.match(/^[a-zA-Z]+$/) || !this.last_name.match(/^[a-zA-Z]+$/)) {
if (!this.first_name.match(/^[a-zA-Zà-ü]+$/) || !this.last_name.match(/^[a-zA-Zà-ü]+$/)) {
this.msg = 'Name contains unauthorized characters';
return;
}
Expand Down

0 comments on commit fe1973b

Please sign in to comment.