Skip to content

Commit

Permalink
Username accents (#564)
Browse files Browse the repository at this point in the history
* add accents to update front

* allow accents in names for user registration

* update changelog
  • Loading branch information
rsiminel authored Dec 11, 2024
1 parent a2fe445 commit 54af62d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* increase size of input field in users page
* add a readonly input field under email for showing the email domain*
* Add "custom_users" key to config file, to be used with various scripts
* Allow accents in user's first and last names


## 1.4.31 (2024-09-27)
Expand Down
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
2 changes: 1 addition & 1 deletion manager2/src/app/user/user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ export class UserComponent implements OnInit {
this.update_error_msg = 'Missing field: why do you need an account';
return;
}
if (!this.user.firstname.match(/^[a-zA-Z]+$/) || !this.user.lastname.match(/^[a-zA-Z]+$/)) {
if (!this.user.firstname.match(/^[a-zA-Zà-ü]+$/) || !this.user.lastname.match(/^[a-zA-Zà-ü]+$/)) {
this.update_error_msg = 'Name contains unauthorized characters';
return;
}
Expand Down

0 comments on commit 54af62d

Please sign in to comment.