doupiai5597 2015-12-07 16:30
浏览 15
已采纳

用户登录后重新输入特定页面的密码

my app is developed in codeigniter. What I am looking to do is to prompt the user to re-enter the password in order to access certain sections like edit profile, settings etc.

My question is that if the user has signed up through facebook or twitter, how would I implement this functionality?

Thanks

  • 写回答

1条回答 默认 最新

  • douzhicong5965 2015-12-08 11:47
    关注

    https://developers.facebook.com/docs/facebook-login/reauthentication/

    Re-Authentication
    This when your app confirms a person's identity after checking previously. With Facebook Login, your app asks a person to re-enter their Facebook password at any time. You can use this to prevent cases where a user leaves a device logged in or where a third party hijacks someone's session with your app.

    (The wording is a little off, but that’s a direct quote from the FB docs.)

    By adding the parameter auth_type=reauthenticate to your login dialog call, you can force users to re-enter their password before procedding.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统