Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username accents #564

Merged
merged 4 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,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 @@ -670,7 +670,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