diff --git a/LearningHub.Nhs.UserApi.Services/ElfhUserService.cs b/LearningHub.Nhs.UserApi.Services/ElfhUserService.cs index e4e558d..1e42f93 100644 --- a/LearningHub.Nhs.UserApi.Services/ElfhUserService.cs +++ b/LearningHub.Nhs.UserApi.Services/ElfhUserService.cs @@ -317,6 +317,7 @@ public async Task CreateUserNameAsync(int medicalCouncilId, string medic if (medicalCouncilId == 0 || string.IsNullOrEmpty(medicalCouncilNumber)) { // Generate random username using Lastname + lastName = string.Concat(lastName.Where(c => !char.IsWhiteSpace(c))); string usernameStart = lastName.StripUnicodeCharactersFromString().Trim(); if (usernameStart.Length > 5) {