[wp-trac] [WordPress Trac] #46595: Allow more than one valid recovery mode link
WordPress Trac
noreply at wordpress.org
Mon Apr 1 13:32:26 UTC 2019
#46595: Allow more than one valid recovery mode link
------------------------------------+--------------------------------
Reporter: flixos90 | Owner: timothyblynjacobs
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.2
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch servehappy | Focuses:
------------------------------------+--------------------------------
Comment (by TimothyBlynJacobs):
One of the difficulties of using the variable option name we discussed, is
it makes cleanup hard. It'd be easy for the database to be filled with
loads of these options as new recovery links come in. Right now, we don't
invalidate when processing a recovery key. We could add that, and it'd
help somewhat, but not enough IMO.
An alternative would be to make `recovery_keys` an associative array with
the random chars as the keys. Then, whenever a new recovery key is
generated, we could loop through all existing recovery keys and remove
them if they expired.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46595#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list