diff --git a/CHANGELOG.md b/CHANGELOG.md index 31b3ae46..655dfc22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/manager2/src/app/auth/register/register.component.ts b/manager2/src/app/auth/register/register.component.ts index e1cc696f..af9051ae 100644 --- a/manager2/src/app/auth/register/register.component.ts +++ b/manager2/src/app/auth/register/register.component.ts @@ -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; } diff --git a/manager2/src/app/user/user.component.ts b/manager2/src/app/user/user.component.ts index 6e81648e..74c0cd75 100644 --- a/manager2/src/app/user/user.component.ts +++ b/manager2/src/app/user/user.component.ts @@ -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; }