Merge pull request #7236 from vvlladd28/bug/2fa/totp/name
[3.4.2] UI: Fixed not allow whitespace in issuer name at TOTP 2FA provider
This commit is contained in:
commit
54f0469fd5
@ -192,7 +192,7 @@ export class TwoFactorAuthSettingsComponent extends PageComponent implements OnI
|
||||
};
|
||||
switch (provider) {
|
||||
case TwoFactorAuthProviderType.TOTP:
|
||||
formControlConfig.issuerName = [{value: 'ThingsBoard', disabled: true}, [Validators.required, Validators.pattern(/^\S+$/)]];
|
||||
formControlConfig.issuerName = [{value: 'ThingsBoard', disabled: true}, [Validators.required, Validators.pattern(/^(?!^\s+$).*$/)]];
|
||||
break;
|
||||
case TwoFactorAuthProviderType.SMS:
|
||||
formControlConfig.smsVerificationMessageTemplate = [{value: 'Verification code: ${code}', disabled: true}, [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user