From 39434fec12577ffa711e11222956f0c5ceca6cb0 Mon Sep 17 00:00:00 2001 From: remy siminel Date: Mon, 4 Nov 2024 10:15:33 +0100 Subject: [PATCH 1/3] add accents to update front --- manager2/src/app/user/user.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager2/src/app/user/user.component.ts b/manager2/src/app/user/user.component.ts index 396df458..5de6daa8 100644 --- a/manager2/src/app/user/user.component.ts +++ b/manager2/src/app/user/user.component.ts @@ -666,7 +666,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; } From fe1973b5d5a6bf32844c8b11d34e595943a1bcf5 Mon Sep 17 00:00:00 2001 From: remy siminel Date: Mon, 9 Dec 2024 14:41:15 +0100 Subject: [PATCH 2/3] allow accents in names for user registration --- manager2/src/app/auth/register/register.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } From ab10d6ca76ad71bef7f6f18b2bfb2c9106be6d4b Mon Sep 17 00:00:00 2001 From: remy siminel Date: Tue, 10 Dec 2024 17:43:39 +0100 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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)