TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #107792
Issue Task Closed

#107792Simplify RecoveryCodes::generatePlainRecoveryCodes

Oliver Hader 10/20/25, 11:51 updated 12/02/25, 12:04

Open in Forge Comment in Forge

Description

RecoveryCodes::generatePlainRecoveryCodes uses a randomly generated 64-bit word to generate random numeric recovery codes using `hexdec` with ignoring the maximum integer limit of `PHP_INT_MAX`, which is a 63-bit integer.

Reviews 3

  • 12.4 91187[TASK] Simplify RecoveryCodes::generatePlainRecoveryCodes Resolves this issue Merged Oliver Hader CR +2 V +2 → main, 13.4 Easy +5 −17 10/21/25, 13:44
  • 13.4 91186[TASK] Simplify RecoveryCodes::generatePlainRecoveryCodes Resolves this issue Merged Oliver Hader CR +2 V +2 → main, 12.4 Easy +5 −17 10/21/25, 13:44
  • main 91168[TASK] Simplify RecoveryCodes::generatePlainRecoveryCodes Resolves this issue Merged Oliver Hader CR +2 V +2 → 13.4, 12.4 Easy +5 −17 10/21/25, 13:44

Related issues 1

  • Task #107748Avoid `not representable as an int, cast occurred ` PHP85 warning Related to Closed v12 Stefan Bürk 10/17/25, 08:05
Assigned to
Oliver Hader
Author
Oliver Hader
Priority
Should have
Category
Security
TYPO3 version
14
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback