fix(next): email verification not working due to incorrect token url parsing (#11439)

### What?
This PR reverts a presumably accidental change made in
[b80010b1a1](b80010b1a1),
that broke the email verification feature in v3.24.0 and onwards.
### Why?
Through the missing verify in `const [collectionSlug, verify, token] =
params.segments`, the token value was always the string `verify`
This commit is contained in:
Philipp Meyer
2025-02-28 01:05:05 +01:00
committed by GitHub
parent c21dac1b53
commit f3844ee533

View File

@@ -14,7 +14,7 @@ export { generateVerifyMetadata } from './meta.js'
export async function Verify({ initPageResult, params, searchParams }: AdminViewServerProps) {
// /:collectionSlug/verify/:token
const [collectionSlug, token] = params.segments
const [collectionSlug, verify, token] = params.segments
const { locale, permissions, req } = initPageResult
const {