feat: add iOS support and harden receipt scanning
This commit is contained in:
@@ -52,7 +52,7 @@ export async function POST(request: Request) {
|
||||
if (dbDown) return dbDown;
|
||||
|
||||
try {
|
||||
const user = await getCurrentUser();
|
||||
const user = await getCurrentUser(request);
|
||||
if (!user) return authError("unauthorized", 401);
|
||||
|
||||
const parsed = await readJsonSized<ChangePasswordBody>(request, MAX_JSON_BODY_BYTES);
|
||||
|
||||
Reference in New Issue
Block a user