Reference e2e setup clears the 2FA counter under the site's own key prefix (iapl)
The reference site has storageNames: 'iapl'; the setup cleared only ipal:2fa-verify:*, so attempts of one e2e run counted against the next (found by the Turbopack run after the webpack run). Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
e0f7fa1add
commit
5a0ea924ff
@@ -29,6 +29,8 @@ for (const address of [email, secondTestAdmin(email)]) {
|
||||
const doc = found.docs[0]
|
||||
? await payload.update({ id: found.docs[0].id, collection: 'users', data: data as never, overrideAccess: true })
|
||||
: await payload.create({ collection: 'users', data: data as never, overrideAccess: true })
|
||||
// this site counts under the `iapl` prefix (payload.config.ts: storageNames: 'iapl'); the old key too, for a database from before
|
||||
await payload.kv.delete(verifyLimitKey('users', String(doc.id), 'iapl'))
|
||||
await payload.kv.delete(verifyLimitKey('users', String(doc.id)))
|
||||
console.log(`[e2e] test admin ready: ${address}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user