From eb7e389795d7a4d7e2c48abc77b185fc820e5283 Mon Sep 17 00:00:00 2001 From: "SANDHYA.JS" Date: Thu, 12 Dec 2024 20:25:31 +0530 Subject: [PATCH] Fix Bug 2396 : Inconsistent behavior in user creation between the UI and CLI - Made the UI case insensitive for username as followed in cli Change-Id: I924b01af650963e29a56de263a343fe2b7b75e20 Signed-off-by: SANDHYA.JS --- src/app/users/add-user/AddEditUserComponent.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/users/add-user/AddEditUserComponent.ts b/src/app/users/add-user/AddEditUserComponent.ts index 5226d5b..5746634 100644 --- a/src/app/users/add-user/AddEditUserComponent.ts +++ b/src/app/users/add-user/AddEditUserComponent.ts @@ -259,13 +259,13 @@ export class AddEditUserComponent implements OnInit { this.isLoadingResults = true; if (isNullOrUndefined(this.userForm.value.otp)) { this.payload = JSON.stringify({ - username: (this.userForm.value.userName).toLowerCase(), + username: (this.userForm.value.userName), email_id: (this.userForm.value.email_id) }); } else { this.getFormControl('userName').enable(); this.payload = JSON.stringify({ - username: (this.userForm.value.userName).toLowerCase(), + username: (this.userForm.value.userName), otp: (this.userForm.value.otp) }); } @@ -353,14 +353,14 @@ export class AddEditUserComponent implements OnInit { this.isLoadingResults = true; if (!isNullOrUndefined(this.userForm.value.email_id) && this.userForm.value.email_id !== '') { this.addPayload = JSON.stringify({ - username: (this.userForm.value.userName).toLowerCase(), + username: (this.userForm.value.userName), password: (this.userForm.value.password), email_id: (this.userForm.value.email_id), domain_name: !isNullOrUndefined(this.userForm.value.domain_name) ? this.userForm.value.domain_name : undefined }); } else { this.addPayload = JSON.stringify({ - username: (this.userForm.value.userName).toLowerCase(), + username: (this.userForm.value.userName), password: (this.userForm.value.password), domain_name: !isNullOrUndefined(this.userForm.value.domain_name) ? this.userForm.value.domain_name : undefined }); @@ -392,7 +392,7 @@ export class AddEditUserComponent implements OnInit { payLoad.email_id = (this.userForm.value.email_id); } else { - payLoad.username = this.userForm.value.userName.toLowerCase(); + payLoad.username = this.userForm.value.userName; } const apiURLHeader: APIURLHEADER = { url: environment.USERS_URL + '/' + this.userID, -- 2.25.1