[wp-trac] [WordPress Trac] #58901: Flush 'user_activation_key' after successfully login

WordPress Trac noreply at wordpress.org
Sun Sep 24 18:32:05 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 needs-refresh                          |
-------------------------------------------------+-------------------------
Changes (by oglekler):

 * keywords:  has-patch has-unit-tests needs-testing => has-patch has-unit-
     tests needs-testing needs-refresh


Comment:

 I was suggesting use `clean_user_cache( $user_id );` instead of
 `$user->__set( 'user_activation_key', '' );`

 I've tested the last patch, it works as expected, but I was unable to
 actually apply the patch, tests needs a rebase.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58901#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list