myron 18ec3a7143 Fix broken password reset INSERT — SQL syntax error and wrong token value
The INSERT had two compounding bugs:
1. ".?" in the VALUES clause — a PHP dot inside a double-quoted string
   is a literal character, not concatenation. MySQL saw it as a syntax
   error and the INSERT always failed silently (no try/catch).
2. The token column had the literal string __reset__ hardcoded instead
   of a ? placeholder, so even if the INSERT had run, the real random
   token would never have been stored — the reset link always invalid.

Fix: VALUES ("__reset__","",?,?,?,?) with execute(alias,email,token,exp)
giving 4 placeholders for 4 params, all columns correctly bound.
2026-06-03 03:54:16 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
S
Description
Mirror of github.com/myronblair/tomtomgames
262 KiB
Languages
PHP 99.8%
Shell 0.2%