Browse Source
Merge pull request #13777 from abpframework/Issue-13748
Deleted required validator in user-edit-props.
pull/13788/head
Muhammed Altuğ
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
1 deletions
-
npm/ng-packs/packages/identity/src/lib/defaults/default-users-form-props.ts
|
|
|
@ -65,4 +65,12 @@ export const DEFAULT_USERS_CREATE_FORM_PROPS = FormProp.createMany<IdentityUserD |
|
|
|
}, |
|
|
|
]); |
|
|
|
|
|
|
|
export const DEFAULT_USERS_EDIT_FORM_PROPS = DEFAULT_USERS_CREATE_FORM_PROPS |
|
|
|
export const DEFAULT_USERS_EDIT_FORM_PROPS = DEFAULT_USERS_CREATE_FORM_PROPS.map(prop => { |
|
|
|
if (prop.name === 'password') { |
|
|
|
return { |
|
|
|
...prop, |
|
|
|
validators: data => [...getPasswordValidators({ get: data.getInjected })], |
|
|
|
}; |
|
|
|
} |
|
|
|
return prop; |
|
|
|
}); |
|
|
|
|