ApiCompatProbeController
extends z_controller
in package
Guards the framework's password API against breaking changes for consuming apps. They call model("z_login")->checkPassword($pw, $hash, $salt) with the 3-argument shape (no scheme) on their own user tables, and rely on legacy hashes still verifying. See jouri's Authentication/UserController.
If a refactor breaks the 3-arg signature or stops inferring the scheme from the salt, these probes flip and the spec fails.
Table of Contents
- LEGACY_HASH = "772e7e18b509ee9dbf4a53d415187fa49c68c991873e3282c0025e9e53d4c946125f184c34e04a7fcd5136fcdc04bedc17afd981380ee05ccb7683e7d83ec615"
- LEGACY_PW = "password"
- LEGACY_SALT = "4401287036553e310907533.22322450"
- action_legacy3Arg() : mixed
- Consumer call: checkPassword($pw, $legacyHash, $salt) — no scheme.
- action_native3Arg() : mixed
- Consumer call: checkPassword($pw, $nativeHash, null) — no scheme, no salt.
Constants
LEGACY_HASH
private
mixed
LEGACY_HASH
= "772e7e18b509ee9dbf4a53d415187fa49c68c991873e3282c0025e9e53d4c946125f184c34e04a7fcd5136fcdc04bedc17afd981380ee05ccb7683e7d83ec615"
LEGACY_PW
private
mixed
LEGACY_PW
= "password"
LEGACY_SALT
private
mixed
LEGACY_SALT
= "4401287036553e310907533.22322450"
Methods
action_legacy3Arg()
Consumer call: checkPassword($pw, $legacyHash, $salt) — no scheme.
public
action_legacy3Arg(Request $req, Response $res) : mixed
Parameters
- $req : Request
- $res : Response
Return values
mixed —action_native3Arg()
Consumer call: checkPassword($pw, $nativeHash, null) — no scheme, no salt.
public
action_native3Arg(Request $req, Response $res) : mixed
Parameters
- $req : Request
- $res : Response