$host.ui.PromptForCredential

Archived support forum for customers who once purchased a PrimalForms product license. This forum is locked.
This topic is 12 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
scsr_1
Posts: 1
Last visit: Fri Jul 10, 2015 11:53 am

$host.ui.PromptForCredential

Post by scsr_1 »

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
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

$host.ui.PromptForCredential

Post by davidc »

We are looking into the issue. David
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

$host.ui.PromptForCredential

Post by davidc »

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.
This topic is 12 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.