Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions IdentityCommand/Private/Get-MechanismAnswer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function Get-MechanismAnswer {

switch ($Mechanism.Name) {

'UP' {
{ $PSItem -match 'UP|SMS' } {

#User Password already provided via Credential
$Answer = $Credential.Password
Expand Down Expand Up @@ -94,7 +94,7 @@ function Get-MechanismAnswer {

}

{ $PSItem -match 'SMS|OATH' } {
{ $PSItem -match 'OATH' } {

#Prompt for TOTP/SMS code input
$Answer = Read-Host -Prompt $($Mechanism.PromptMechChosen) -AsSecureString
Expand Down
4 changes: 4 additions & 0 deletions IdentityCommand/Private/Start-AdvanceAuthentication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ Function Start-AdvanceAuthentication {
break
}

{ $PSItem.Name -match 'SMS' } {
$Answer = Read-Host -Prompt $($Mechanism.PromptMechChosen) -AsSecureString
}

{ $($PSItem.Name) -match 'SQ|UP|OATH|SMS|RESET' } {

#Provide Answer Directly
Expand Down