简体   繁体   中英

re-enter password for specific pages after user login

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM