Commit 75b39947 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #16956 TIME 0:05 otp: fix duplicated security modes

parent b9152e63
......@@ -110,7 +110,7 @@ export class CreateExternalUserComponent implements OnInit {
setCurrentSource(id: any) {
const selectedSource: any = this.sources.filter((item: any) => item.id === id)[0];
this.userOTP.type = selectedSource.type;
this.currentSource = selectedSource.securityModes;
this.currentSource = [... new Set(selectedSource.securityModes)];
this.userOTP.security = this.currentSource[0];
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment