mirror of
https://github.com/hanzoai/base.git
synced 2026-10-21 03:41:50 +00:00
- forms/RecordUpsert no longer manages a plain password / confirm / oldPassword triple; Load + validateFormFields only handle the email + verified system fields now. DrySubmit + Submit semantics unchanged - apis/installer + apis/superuser_auth_oidc drop SetRandomPassword; the installer superuser and the OIDC auto-create path persist a verified passwordless record (IAM handles credentials) - apis/collection_test snapshots updated for the slimmer auth collection bootstrap (no system "password" field) and the smaller collection inventory (12 not 16); the now-stale "create-base- collection-with-oldPassword-rejected" test is deleted because the reserved-key check is gone - plugins/jsvm drops the PasswordField bind - plugins/zap returns 410 Gone for /identity (the only ZAP path that called record.ValidatePassword) — IAM PKCE is the only login - plugins/migratecmd test no longer probes a PasswordResetToken secret on auth collections - tests/dynamic_stubs loses StubMFARecords + StubOTPRecords; tests/token_helper loses GetUserPasswordResetToken
39 lines
708 B
Go
39 lines
708 B
Go
package tests
|
|
|
|
// MFA + OTP stub records were dropped alongside the legacy
|
|
// _mfas / _otps system collections in the IAM-native rip.
|
|
|
|
func StubLogsData(app *TestApp) error {
|
|
_, err := app.AuxDB().NewQuery(`
|
|
delete from {{_logs}};
|
|
|
|
insert into {{_logs}} (
|
|
[[id]],
|
|
[[level]],
|
|
[[message]],
|
|
[[data]],
|
|
[[created]],
|
|
[[updated]]
|
|
)
|
|
values
|
|
(
|
|
"873f2133-9f38-44fb-bf82-c8f53b310d91",
|
|
0,
|
|
"test_message1",
|
|
'{"status":200}',
|
|
"2022-05-01 10:00:00.123Z",
|
|
"2022-05-01 10:00:00.123Z"
|
|
),
|
|
(
|
|
"f2133873-44fb-9f38-bf82-c918f53b310d",
|
|
8,
|
|
"test_message2",
|
|
'{"status":400}',
|
|
"2022-05-02 10:00:00.123Z",
|
|
"2022-05-02 10:00:00.123Z"
|
|
);
|
|
`).Execute()
|
|
|
|
return err
|
|
}
|