WordPress / application-passwords

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

frontend shortcode

mafam1024 opened this issue · comments

commented

can i call the functions of creating password from frontend ?
if possible to get shortcode, we can put it in fronted user profile to let user generate password, because we lock login to (/wp-admin) for users out of administrators

There's REST API endpoints to create application passwords for the user --

https://github.com/georgestephanis/application-passwords/blob/master/class.application-passwords.php#L89-L99

it should be relatively simple to duplicate the JS code we're using

https://github.com/georgestephanis/application-passwords/blob/master/application-passwords.js

to manage a front-end ui.