ID statt UID
This commit is contained in:
@@ -4,7 +4,6 @@ import { BASE_URI } from "#lib/constants";
|
||||
import { transport } from "#lib/mail";
|
||||
import { getPrismaAusweisAdapter } from "#lib/server/ausweis";
|
||||
import { getCurrentUser } from "#lib/server/user";
|
||||
import { shortenUID } from "#server/lib/hash.js";
|
||||
|
||||
const user = await getCurrentUser(Astro)
|
||||
const uid = Astro.url.searchParams.get("uid");
|
||||
@@ -23,7 +22,7 @@ const ausweis = await adapter.findUnique({
|
||||
}
|
||||
})
|
||||
|
||||
const id = shortenUID(ausweis.uid);
|
||||
const id = ausweis.id;
|
||||
|
||||
if (!ausweis) {
|
||||
return Astro.redirect("/")
|
||||
|
||||
Reference in New Issue
Block a user