feat(console): phone number validation with flags (#5139)

Formats the phonenumber according to the preselected country
This commit is contained in:
Miguel Cabrerizo
2023-02-02 09:36:43 +01:00
committed by GitHub
parent e9d5d1dcaf
commit 5704c44117
284 changed files with 306 additions and 65 deletions

View File

@@ -58,6 +58,9 @@ import { UserMfaComponent } from './user-detail/user-mfa/user-mfa.component';
import { MachineSecretDialogComponent } from './user-detail/machine-secret-dialog/machine-secret-dialog.component';
import { MetadataModule } from 'src/app/modules/metadata/metadata.module';
import { QRCodeModule } from 'angularx-qrcode';
import { PhoneDetailComponent } from './phone-detail/phone-detail.component';
import { CountryCallingCodesService } from 'src/app/services/country-calling-codes.service';
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
@NgModule({
declarations: [
@@ -76,8 +79,10 @@ import { QRCodeModule } from 'angularx-qrcode';
DialogU2FComponent,
DialogPasswordlessComponent,
AuthFactorDialogComponent,
PhoneDetailComponent,
MachineSecretDialogComponent,
],
providers: [CountryCallingCodesService],
imports: [
ChangesModule,
CommonModule,
@@ -122,6 +127,7 @@ import { QRCodeModule } from 'angularx-qrcode';
InputModule,
MachineKeysModule,
InfoSectionModule,
MatSelectModule,
],
})
export class UserDetailModule {}