mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 11:53:16 +00:00
verify email
This commit is contained in:
@@ -6,9 +6,13 @@ export async function POST(request: NextRequest) {
|
||||
if (body) {
|
||||
const { userId, code } = body;
|
||||
|
||||
return verifyEmail(server, userId, code).then((resp) => {
|
||||
return NextResponse.json(resp);
|
||||
});
|
||||
return verifyEmail(server, userId, code)
|
||||
.then((resp) => {
|
||||
return NextResponse.json(resp);
|
||||
})
|
||||
.catch((error) => {
|
||||
return NextResponse.json(error, { status: 500 });
|
||||
});
|
||||
} else {
|
||||
return NextResponse.error();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user