![](/img/trans.png)
[英]how to hide asp.net login control 's Remember me checkbox and Remember me text in code behind based on a condition?
[英]How to disable Remember Me checkbox in AuthenticationContext Login Windows App?
我在Windows 10通用應用程序中使用身份驗證上下文。 首次登錄時,我選中了記住我,現在每次退出並嘗試登錄時,它都會自動登錄,而不會提示。 如何禁用它? 您可以通過以下方式獲得相同的提示:
AuthenticationResult result = await authContext.AcquireTokenAsync(graphResourceId, clientId, redirectURI, new PlatformParameters(PromptBehavior.Auto, false));
哦,我很傻,它確實在參數中:
new PlatformParameters(PromptBehavior.Auto, false);
至
new PlatformParameters(PromptBehavior.Always, false);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.