Skip to content
Snippets Groups Projects
Unverified Commit 48e960cc authored by Murtaza Patrawala's avatar Murtaza Patrawala Committed by GitHub
Browse files

Regression: Unable to edit user details via admin panel (#25923)

parent 9a41c4fa
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@ const getInitialValue = (data) => ({
name: data.name ?? '',
password: '',
username: data.username,
status: data.status,
bio: data.bio ?? '',
nickname: data.nickname ?? '',
email: (data.emails && data.emails.length && data.emails[0].address) || '',
......
......@@ -18,9 +18,11 @@ export type UsersUpdateParamsPOST = {
roles?: string[];
joinDefaultChannels?: boolean;
requirePasswordChange?: boolean;
setRandomPassword?: boolean;
sendWelcomeEmail?: boolean;
verified?: boolean;
customFields?: {};
status?: string;
};
confirmRelinquish?: boolean;
};
......@@ -84,6 +86,10 @@ const UsersUpdateParamsPostSchema = {
type: 'boolean',
nullable: true,
},
setRandomPassword: {
type: 'boolean',
nullable: true,
},
sendWelcomeEmail: {
type: 'boolean',
nullable: true,
......@@ -96,6 +102,10 @@ const UsersUpdateParamsPostSchema = {
type: 'object',
nullable: true,
},
status: {
type: 'string',
nullable: true,
},
},
required: [],
additionalProperties: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment