mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Merge pull request #6399 from jakemcdermott/6398-fix-confirm-password-reset
Don't delete confirmed password from formik object Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
c38d13c5ab
@ -145,8 +145,8 @@ function UserForm({ user, handleCancel, handleSubmit, submitError, i18n }) {
|
||||
if (!values.password || values.password === '') {
|
||||
delete values.password;
|
||||
}
|
||||
delete values.confirm_password;
|
||||
handleSubmit(values);
|
||||
const { confirm_password, ...submitValues } = values;
|
||||
handleSubmit(submitValues);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user