|
|
@ -1,9 +1,7 @@ |
|
|
import { IdentityUserDto } from '@abp/ng.identity/proxy'; |
|
|
import { IdentityUserDto } from '@abp/ng.identity/proxy'; |
|
|
import { getPasswordValidators } from '@abp/ng.theme.shared'; |
|
|
import { getPasswordValidators } from '@abp/ng.theme.shared'; |
|
|
import { ePropType, FormProp } from '@abp/ng.theme.shared/extensions'; |
|
|
import { ePropType, FormProp } from '@abp/ng.theme.shared/extensions'; |
|
|
import { Validators } from '@angular/forms' |
|
|
import { Validators } from '@angular/forms'; |
|
|
import { AbpValidators } from '@abp/ng.core'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_USERS_CREATE_FORM_PROPS = FormProp.createMany<IdentityUserDto>([ |
|
|
export const DEFAULT_USERS_CREATE_FORM_PROPS = FormProp.createMany<IdentityUserDto>([ |
|
|
{ |
|
|
{ |
|
|
@ -11,7 +9,7 @@ export const DEFAULT_USERS_CREATE_FORM_PROPS = FormProp.createMany<IdentityUserD |
|
|
name: 'userName', |
|
|
name: 'userName', |
|
|
displayName: 'AbpIdentity::UserName', |
|
|
displayName: 'AbpIdentity::UserName', |
|
|
id: 'user-name', |
|
|
id: 'user-name', |
|
|
validators: () => [Validators.required, Validators.maxLength(256), AbpValidators.username()], |
|
|
validators: () => [Validators.required, Validators.maxLength(256)], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
type: ePropType.Password, |
|
|
type: ePropType.Password, |
|
|
|