forked from unimatrix/web
feat(postbank): central UUID client numbers and My Banking Information
This commit is contained in:
parent
d065aef3c8
commit
ad97dcd233
1 changed files with 94 additions and 3 deletions
|
|
@ -38,3 +38,10 @@ Website first. No game plugin code changes in this work package without later sc
|
|||
Executed the explicitly confirmed destructive reset against both authoritative stores. Gameplay: nine current balances and nine savings balances set to zero; seven non-player wallet rows removed (one faction, five official, one staff). Cleared bank ledgers, bank transfer receipts, fee accruals and savings interest state; verified empty within the reset transaction. Website registry: 23 accounts before, seven non-UUID accounts removed (one faction, six server), eight associated authorisations removed, 16 UUID-keyed account registrations retained. No site roles, game memberships, inventory or paid shop receipt records changed.
|
||||
|
||||
Private rollback copies: gameplay `/root/postbank-reset-20261113T165203Z`; website `/var/lib/dunerealms-maintenance/postbank-reset-20261113T165220Z`. These contain sensitive pre-reset data and must never be committed or published. This is a point-in-time reset, not a claim that existing game services can never create a new account or earn new currency afterward. No plugin code was modified. Seven-column desktop portal CSS is committed, not yet deployed by this pull.
|
||||
|
||||
## Client identity API
|
||||
`GET /api/bank/client` returns the signed-in user's linked-player client identity: `{ "clientNumber": "012345678901", "linked": true }` (illustrative number only). Unlinked and game-link-exempt service identities return null/false. The client number is a string so leading zeroes survive JSON/UI handling. No UUID or account override is accepted; the route rechecks the authenticated link before returning.
|
||||
|
||||
SHA-256 of a versioned, canonical UUID namespace produces a 12-digit candidate. The new additive `bank_clients` table persists assignments with unique UUID and number constraints; bounded alternate hash candidates resolve collisions without changing existing numbers. This is an identifier, not a secret or authorisation token. UUID relinking follows the linked player, not the website username. No balances or account privileges are inferred from it.
|
||||
|
||||
The Accounts menu now starts with My Banking Information: actual client identity plus explicitly planned banking-profile fields. The existing profile/mandate features are not claimed connected. Focused client/legacy bank import tests: six passed; navigation tests: three passed; Worker build passed. Local full CP cutover tests could not load absent mysql2 in this new worktree; complete-source CI is required before merge/deployment.
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff