Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -109,7 +109,7 @@ export class DeviceCredentialsDialogComponent extends |
109 | 109 | const crendetialsType = this.deviceCredentialsFormGroup.get('credentialsType').value as DeviceCredentialsType; |
110 | 110 | switch (crendetialsType) { |
111 | 111 | case DeviceCredentialsType.ACCESS_TOKEN: |
112 | - this.deviceCredentialsFormGroup.get('credentialsId').setValidators([Validators.max(20), Validators.pattern(/^.{1,20}$/)]); | |
112 | + this.deviceCredentialsFormGroup.get('credentialsId').setValidators([Validators.required, Validators.pattern(/^.{1,20}$/)]); | |
113 | 113 | this.deviceCredentialsFormGroup.get('credentialsId').updateValueAndValidity(); |
114 | 114 | this.deviceCredentialsFormGroup.get('credentialsValue').setValidators([]); |
115 | 115 | this.deviceCredentialsFormGroup.get('credentialsValue').updateValueAndValidity(); | ... | ... |