feat: add hub
This commit is contained in:
@@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
|
||||
|
||||
if (!(await passwordMatches(event, password))) {
|
||||
await new Promise(resolve => setTimeout(resolve, FAILED_LOGIN_DELAY_MS))
|
||||
throw createError({ statusCode: 401, statusMessage: 'Wrong password' })
|
||||
throw createError({ statusCode: 401, statusMessage: 'Falsches Passwort' })
|
||||
}
|
||||
|
||||
const session = await authSession(event)
|
||||
|
||||
Reference in New Issue
Block a user