Skip to content

Commit 1001b12

Browse files
authored
Merge pull request #44 from TechnologyEnhancedLearning/RC
Rc
2 parents 22c1023 + 9f84105 commit 1001b12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

LearningHub.Nhs.UserApi.Services/ElfhUserService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ public async Task<string> CreateUserNameAsync(int medicalCouncilId, string medic
317317
if (medicalCouncilId == 0 || string.IsNullOrEmpty(medicalCouncilNumber))
318318
{
319319
// Generate random username using Lastname
320+
lastName = string.Concat(lastName.Where(c => !char.IsWhiteSpace(c)));
320321
string usernameStart = lastName.StripUnicodeCharactersFromString().Trim();
321322
if (usernameStart.Length > 5)
322323
{

0 commit comments

Comments
 (0)