[英]Populate model parameter with the openid_identifier selected in the view?
我一直在使用 openid 選擇器在 web 站點上按照此處的教程實現 openid 登錄。
一切正常,但是 openid_identifier 是從請求中的 controller 中讀取的,就像Request.Form["openid_identifier"]
一樣,我想將選定的 openid_identifier 添加到視圖 model 並將其設置在那里(所以我可以添加其他事情要查看 model 左右我可以更輕松地測試 controller)。
我可以這樣做嗎? 如何?
是否改變
public ActionResult Authenticate(string returnUrl)
至
public ActionResult Authenticate(String returnUrl, String openid_identifier)
為你而做?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.