Skip to content

Fire an action when a user revalites their 2FA session.#620

Merged
dd32 merged 1 commit intoWordPress:masterfrom
dd32:add/action/two_factor_user_revalidated
Jul 30, 2024
Merged

Fire an action when a user revalites their 2FA session.#620
dd32 merged 1 commit intoWordPress:masterfrom
dd32:add/action/two_factor_user_revalidated

Conversation

@dd32
Copy link
Copy Markdown
Member

@dd32 dd32 commented Jul 29, 2024

What?

This adds an action for when a user revalidates their session.

This is similar to the existing two_factor_user_authenticated action for when the user authenticated via 2FA in the first place.

Why?

I'm needing to have a cookie set for when the revalidation logic is triggered, and neither Two-Factor nor WordPress (in it's session handler) have a way to detect that the current sessions 2FA has been revalidated / modified.

How?

Testing Instructions

Screenshots or screencast

Changelog Entry

Added - A New hook was added that fires when a user revalidates their 2FA session.

dd32 added a commit to WordPress/wporg-two-factor that referenced this pull request Jul 29, 2024
Copy link
Copy Markdown
Collaborator

@kasparsd kasparsd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@dd32 dd32 merged commit e5d6b20 into WordPress:master Jul 30, 2024
@dd32 dd32 added this to the 0.10.0 milestone Jul 30, 2024
@kasparsd kasparsd mentioned this pull request Sep 18, 2024
dd32 added a commit to WordPress/wporg-two-factor that referenced this pull request Oct 8, 2024
@jeffpaul jeffpaul modified the milestones: 0.11.0, 0.10.0 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants