[wp-trac] [WordPress Trac] #58901: Flush 'user_activation_key' after successfully login
WordPress Trac
noreply at wordpress.org
Thu Sep 21 00:37:24 UTC 2023
#58901: Flush 'user_activation_key' after successfully login
-------------------------------------------------+-------------------------
Reporter: nsinelnikov | Owner:
| rajinsharwar
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.4
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Comment (by Rahmohn):
Replying to [comment:8 oglekler]:
> I wonder if `clean_user_cache( $user_id )` is a better way to clear the
cache.
Hi @oglekler
If I'm not wrong, `clean_user_cache( $user_id ) just removes the cache for
the user ID, login, nicename, email and meta but the link to reset the
password will still be valid. That way, cleaning the user cache after a
successful login doesn't seem to help in this case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58901#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list