We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01531ac commit effedecCopy full SHA for effedec
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ExecJITAdmin.ps1
@@ -121,11 +121,8 @@ function Invoke-ExecJITAdmin {
121
$PasswordExpiration = $TapRequest.LifetimeInMinutes
122
123
$PasswordLink = New-PwPushLink -Payload $TempPass
124
- if ($PasswordLink) {
125
- $Password = $PasswordLink
126
- } else {
127
- $Password = $TempPass
128
- }
+ $Password = $PasswordLink ? $PasswordLink : $TempPass
+
129
$Results.Add("Temporary Access Pass: $Password")
130
$Results.Add("This TAP is usable starting at $($TapRequest.startDateTime) UTC for the next $PasswordExpiration minutes")
131
} catch {
0 commit comments