WordPress / wporg-two-factor

2FA for WordPress.org accounts
37 stars 8 forks source link

Add a revalidate modal that can be used outside of the Settings flow. #283

Open dd32 opened 3 months ago

dd32 commented 3 months ago

As part of https://meta.trac.wordpress.org/ticket/7704 / https://github.com/WordPress/wordpress.org/pull/344 I needed an easy way to revalidate the current users session 2FA details.

It made the most sense to me to push this into a re-usable function in this plugin that can be then integrated into other tools where needed.

This is not the prettiest code, but it's functional and works for me.