feat: implement mongo + mailing

This commit is contained in:
mrjvs
2026-08-09 14:44:08 +02:00
parent 50e351ce28
commit 8372e673f2
14 changed files with 329 additions and 45 deletions

View File

@@ -21,13 +21,13 @@ export default defineEventHandler(async (event): Promise<ApiAuthLogin> => {
if (error.details === 'INVALID_ARGUMENT: User not found') {
throw createError({
status: 400,
statusText: 'User not found'
message: 'User not found'
});
}
if (error.details === 'INVALID_ARGUMENT: Password is incorrect') {
throw createError({
status: 400,
statusText: 'Password was incorrect'
message: 'Password was incorrect'
});
}
}