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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user