$host.ui.PromptForCredential

Archived support forum for customers who once purchased a PrimalForms product license. This forum is locked.
User avatar
scsr_1
Posts: 1
Joined: Sat Oct 22, 2011 2:45 am

$host.ui.PromptForCredential

Post by scsr_1 » Sat Oct 22, 2011 2:45 am

Problem discovered when updating to PFv2.0.15 from PFv2.0.8.The following code correctly prompts for credentials (with the appropriate heading) when the code is exported to exe in v2.0.8.Code snippet:$initAnswerAS = "Enter your App_Support credentials."$global:credential = $host.ui.PromptForCredential("AppSupport Credentials", "$initAnswerAS", "", "")This exact code (when exported to exe in v2.0.14 or v2.0..15) does not show the cred box correctly. Instead, it shows a generic credential box, as if you ran "get-credential.")Thank you!-Josh MiddlebrooksBlueCross BlueShield of TN

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

$host.ui.PromptForCredential

Post by davidc » Mon Oct 24, 2011 3:49 am

We are looking into the issue. David
David
SAPIEN Technologies, Inc.

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

$host.ui.PromptForCredential

Post by davidc » Mon Oct 24, 2011 5:34 am

The new host is using the built in PowerShell Credential Dialog. It seems there were requests from multiple user in regards to changing the previous dialog. I will file a feature request to add an option for a customizable dialog. David
davidc2011-10-24 12:44:03
David
SAPIEN Technologies, Inc.